2025-03-27 15:05:14 +08:00

69 lines
2.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using SuperMap.RealEstate.CoreFrameWork;
using SuperMap.RealEstate.Web.UI;
using SuperMap.RealEstate.Web.UI.WebControls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Business = SuperMap.RealEstate.Finance.Storage.Business;
namespace SuperMap.RealEstate.Finance.Modules.ProinstAssignment
{
public partial class PROINSTASSIGNMENT : UserControl<Business.VEHICLEAPPLY>
{
protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack) return;
#region
VEHICLE_TYPE.Items.Clear();
VEHICLE_TYPE.Items.Add(new ListItemEx("", ""));
DictionaryHelper.BindingDropDownList("CAR_TYPE", VEHICLE_TYPE.Items, Transaction);
VEHICLE_TYPE.SelectedValue = "";
if (CurrObject.VEHICLE_TYPE != null)
{
VEHICLE_TYPE.SelectedValue = CurrObject.VEHICLE_TYPE.ToString();
}
#endregion
#region
LICENSE_PLATE.Items.Clear();
LICENSE_PLATE.Items.Add(new ListItemEx("", ""));
DictionaryHelper.BindingDropDownList("LICENSE_PLATE", LICENSE_PLATE.Items, Transaction);
LICENSE_PLATE.SelectedValue = "";
if (CurrObject.LICENSE_PLATE != null)
{
LICENSE_PLATE.SelectedValue = CurrObject.LICENSE_PLATE.ToString();
}
#endregion
}
public override bool LoadData()
{
//如果是工作流组件请自行修改载入的逻辑,以下是功能模块的默认代码
if (!String.IsNullOrEmpty(Request["ID"]))
{
//CurrObject = Request["ID"];
//return this.Select();
Business.VEHICLEAPPLY _VEHICLEAPPLY = new Business.VEHICLEAPPLY(this.Transaction);
_VEHICLEAPPLY.AddSearchParameter("FINANCEPROINST_ID", Request["ID"].ToDecrypt());
if (_VEHICLEAPPLY.Search())
{
CurrObject.VEHICLEAPPLY_ID_Encrypt = _VEHICLEAPPLY.VEHICLEAPPLY_ID_Encrypt;
bool flag = this.Select();
return flag;
}
}
//默认返回值工作流组件返回True,功能模块返回False。
return (WorkFlowPage != null);
}
public override void OnDataAction_BeforeSave(DataActionEventArgs<Business.VEHICLEAPPLY> e)
{
base.OnDataAction_BeforeSave(e);
}
}
}