|
@@ -10,6 +10,8 @@ using PL.UI.Controls;
|
|
|
using FMS.ServiceList;
|
|
|
using FMS.Entity;
|
|
|
using FMS.UI;
|
|
|
+using System.Activities.Expressions;
|
|
|
+using System.Data.Common.CommandTrees;
|
|
|
|
|
|
|
|
|
public partial class AppFms_ServiceMoudle_frmBdMoudleHeadEdit : BasePage
|
|
@@ -19,6 +21,16 @@ public partial class AppFms_ServiceMoudle_frmBdMoudleHeadEdit : BasePage
|
|
|
get { return this.hidKey.Value; }
|
|
|
set { this.hidKey.Value = value; }
|
|
|
}
|
|
|
+ private string biztype
|
|
|
+ {
|
|
|
+ get { return this.hidBizType.Value; }
|
|
|
+ set { this.hidBizType.Value = value; }
|
|
|
+ }
|
|
|
+ private string moudle
|
|
|
+ {
|
|
|
+ get { return this.hidMoudle.Value; }
|
|
|
+ set { this.hidMoudle.Value = value; }
|
|
|
+ }
|
|
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
|
{
|
|
@@ -30,6 +42,10 @@ public partial class AppFms_ServiceMoudle_frmBdMoudleHeadEdit : BasePage
|
|
|
this.key = PageHelper.Request("key");
|
|
|
this.cboBizType.SelectedValue = PageHelper.Request("biztype");
|
|
|
this.cboMoudleType.SelectedValue = PageHelper.Request("moudle");
|
|
|
+ this.biztype = PageHelper.Request("biztype");
|
|
|
+ this.moudle = PageHelper.Request("moudle");
|
|
|
+
|
|
|
+ this.gvData.Columns[2].HeaderText = (this.moudle == "M01" ? "壇澗륩蛟" : "壇마륩蛟");
|
|
|
//this.cboServiceId.InitItems();
|
|
|
if (this.key.HasValue())
|
|
|
{
|
|
@@ -52,6 +68,15 @@ public partial class AppFms_ServiceMoudle_frmBdMoudleHeadEdit : BasePage
|
|
|
BD_MOUDLE_HEAD data = response.DataTable.ToEntity<BD_MOUDLE_HEAD>();
|
|
|
|
|
|
this.Bind(data);
|
|
|
+
|
|
|
+ EciRequest requestBody = new EciRequest(FMSService.BdMoudleBodyLoad);
|
|
|
+ request.Key = this.key;
|
|
|
+
|
|
|
+ EciResponse responseBody = SOA.Execute(request);
|
|
|
+
|
|
|
+ BD_MOUDLE_BODY dataBody = response.DataTable.ToEntity<BD_MOUDLE_BODY>();
|
|
|
+
|
|
|
+ this.Bind(dataBody);
|
|
|
}
|
|
|
|
|
|
protected void btnSave_Click(object sender, EventArgs e)
|
|
@@ -103,4 +128,56 @@ public partial class AppFms_ServiceMoudle_frmBdMoudleHeadEdit : BasePage
|
|
|
|
|
|
//this.Search();
|
|
|
}
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ ///
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="sender"></param>
|
|
|
+ /// <param name="e"></param>
|
|
|
+ protected void gvData_RowDataBound(object sender, GridViewRowEventArgs e)
|
|
|
+ {
|
|
|
+ if (e.Row.RowType == DataControlRowType.DataRow)
|
|
|
+ {
|
|
|
+ //string SERVICE_ID = this.moudle=="M01"?e.Row.FromKey("SERVICE_ID").Text="壇澗륩蛟":"壇마륩蛟";
|
|
|
+ ECombox cboServiceId = (ECombox)e.Row.FindControl("cboServiceId");
|
|
|
+ EChoose txtCustomName = (EChoose)e.Row.FindControl("txtCustomName");
|
|
|
+ ECombox cboReceiveStandardId = (ECombox)e.Row.FindControl("cboReceiveStandardId");
|
|
|
+ ETextBox txtReceivePrice = (ETextBox)e.Row.FindControl("txtReceivePrice");
|
|
|
+ EChoose txtReceiveCurrId = (EChoose)e.Row.FindControl("txtReceiveCurrId");
|
|
|
+ ETextBox txtReceiveMin = (ETextBox)e.Row.FindControl("txtReceiveMin");
|
|
|
+ ETextBox txtReceiveMax = (ETextBox)e.Row.FindControl("txtReceiveMax");
|
|
|
+ ECombox cboDecimalLength = (ECombox)e.Row.FindControl("cboDecimalLength");
|
|
|
+ ECombox cboReceiveMantissaTypeId = (ECombox)e.Row.FindControl("cboReceiveMantissaTypeId");
|
|
|
+ cboServiceId.Condition = "BIZ_FLAG=" + this.biztype;
|
|
|
+ cboServiceId.InitItems();
|
|
|
+ cboReceiveStandardId.InitItems();
|
|
|
+ cboDecimalLength.InitItems();
|
|
|
+ cboReceiveMantissaTypeId.InitItems();
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 劤藤
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="sender"></param>
|
|
|
+ /// <param name="e"></param>
|
|
|
+ protected void btnAdd_Click(object sender, EventArgs e)
|
|
|
+ {
|
|
|
+ //칵훰써炬렘
|
|
|
+ DataTable dt = this.gvData.DataTable(true);
|
|
|
+ for (int i = 0; i <1; i++)
|
|
|
+ {
|
|
|
+ DataRow dr = dt.NewRow();
|
|
|
+ //칵훰榴檄(꿇멨)
|
|
|
+ dr["HEAD_GUID"] = this.key;
|
|
|
+ dr["SERVICE_ID"] = this.biztype;
|
|
|
+
|
|
|
+ dt.Rows.Add(dr);
|
|
|
+ }
|
|
|
+ this.gvData.EDataSource = dt;
|
|
|
+
|
|
|
+ int rowNum = dt.Rows.Count;
|
|
|
+ HtmlWindow.Onload("setFocus(" + rowNum + ")");
|
|
|
+ }
|
|
|
}
|