feat: fmSign GridView 改用 ObjectDataSource

- RpabDAC 新增 SelectRPAB

- dsRPAB2/dsRPAB 改 ObjectDataSource;dsRPAB2_Selecting 改 ODS 事件
This commit is contained in:
2026-09-10 10:48:40 +08:00
parent e8fb81958e
commit b61b8281c8
4 changed files with 26 additions and 13 deletions
+2 -5
View File
@@ -86,10 +86,8 @@ public partial class forms_flow_fmSign : Wellan.Web.UI.WUserControlBase
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
dsRPAB.ConnectionString = ConnectionString;
dsRPARForm.ConnectionString = ConnectionString;
dsRPAR_RPTYP.ConnectionString = ConnectionString;
dsRPAB2.ConnectionString = ConnectionString;
rparDao = new RparDAC(Query);
rpabDao = new RpabDAC(Query);
bsgpDao = new BsgpDAC(Query);
@@ -1746,11 +1744,10 @@ public partial class forms_flow_fmSign : Wellan.Web.UI.WUserControlBase
RPARGrid2.DataBind();
}
protected void dsRPAB2_Selecting(object sender, SqlDataSourceSelectingEventArgs e)
protected void dsRPAB2_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
{
if (RPARGrid2.SelectedValue != null)
e.Command.Parameters["@RPREN"].Value = RPARGrid2.SelectedValue;
//(sender as SqlDataSource).SelectParameters["RPREN"].DefaultValue = WDAC.GetStringValue(RPARGrid2.SelectedValue);
e.InputParameters["RPREN"] = RPARGrid2.SelectedValue;
}
protected string GetAttachLink(string RPREN)