81 lines
2.6 KiB
C#
81 lines
2.6 KiB
C#
using System;
|
||
using System.Data;
|
||
using System.Linq;
|
||
using System.Web.UI;
|
||
using System.Web.UI.WebControls;
|
||
using SuperMap.RealEstate.CoreFrameWork;
|
||
using SuperMap.RealEstate.ServiceModel;
|
||
using SuperMap.RealEstate.Utility;
|
||
using SuperMap.RealEstate.Web.UI;
|
||
using SuperMap.RealEstate.Web.UI.WebControls;
|
||
using SuperMap.RealEstate.Web.Utility;
|
||
using Storage = SuperMap.RealEstate.Finance.Storage;
|
||
using HighWayBusiness = SuperMap.RealEstate.HighWay.Storage.Business;
|
||
namespace SuperMap.RealEstate.Finance.Compents.EditProinst
|
||
{
|
||
/// <summary>
|
||
/// T_COMMODITY_商品管理 的WebUserControl
|
||
/// <summary>
|
||
public partial class Default : UserControl<Running.Business.FINANCEPROINST>
|
||
{
|
||
//流程实例
|
||
Running.Business.FINANCEPROINST _FinanceProInst = null;
|
||
protected void Page_Load(object sender, EventArgs e)
|
||
{
|
||
if (IsPostBack)
|
||
return;
|
||
if (Request["PROINST_TYPE"] != null)
|
||
{
|
||
string _PROINST_TYPE = Request["PROINST_TYPE"].ToString();
|
||
}
|
||
string _OPERATION_TYPE = string.Empty;
|
||
|
||
if (Request["ProInst_ID"] != null)
|
||
{
|
||
WorkFlow.Instance.Business.ProInst _ProInst = _FinanceProInst.ProInst;
|
||
if (_ProInst != null)
|
||
{
|
||
_OPERATION_TYPE = _ProInst.Operation_Type.ToString();
|
||
}
|
||
}
|
||
// PROINST_NAME.
|
||
|
||
}
|
||
protected override void OnInit(EventArgs e)
|
||
{
|
||
Common.PageHelper.CreateHeaderStyle(Page);
|
||
_FinanceProInst = Running.Business.FINANCEPROINST.CreateInstance(Page);
|
||
base.OnInit(e);
|
||
|
||
}
|
||
|
||
public override bool LoadData()
|
||
{
|
||
EXPENSEBILL_CODE.Text = _FinanceProInst.ProInst.ProInst_Code;
|
||
PROINST_NAME.Text = _FinanceProInst.ProInst.ProInst_Name;
|
||
return true;
|
||
}
|
||
|
||
//在此加入界面的数据初始化(Page_Load之前),如DropDownList的数据源绑定等
|
||
public override void InitializeWebControl()
|
||
{
|
||
//加载对应的数据
|
||
}
|
||
|
||
public override bool Save(bool AutoBindData = true)
|
||
{
|
||
if (!string.IsNullOrEmpty(PROINST_NAME.Text))
|
||
{
|
||
WorkFlow.Instance.Business.ProInst _ProInst = _FinanceProInst.__ProInst;
|
||
_ProInst.ProInst_Name = PROINST_NAME.Text;
|
||
_ProInst.Update();
|
||
|
||
_FinanceProInst.ACCEPT_NAME = PROINST_NAME.Text;
|
||
_FinanceProInst.Update();
|
||
}
|
||
return true;
|
||
}
|
||
//载入数据
|
||
}
|
||
}
|