赛鼎焊接修改
This commit is contained in:
@@ -52,7 +52,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
{
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideRefreshReference();
|
||||
this.ProjectId = this.CurrUser.LoginProjectId;
|
||||
|
||||
BLL.ContractService.InitCompletedContractsDropDownList(this.ProjectId,this.drpContractNum);
|
||||
BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, false);
|
||||
this.CostManageId = Request.Params["CostManageId"] ?? SQLHelper.GetNewID();
|
||||
var costManage = BLL.CostManageService.GetCostManageById(this.CostManageId);
|
||||
@@ -68,7 +68,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
{
|
||||
this.drpUnit.SelectedValue = costManage.UnitId;
|
||||
}
|
||||
this.txtContractNum.Text = costManage.ContractNum;
|
||||
this.drpContractNum.SelectedValue = costManage.ContractNum;
|
||||
this.txtCostManageDate.Text = string.Format("{0:yyyy-MM-dd}", costManage.CostManageDate);
|
||||
|
||||
}
|
||||
@@ -303,13 +303,17 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
{
|
||||
ProjectId = this.ProjectId,
|
||||
UnitId = this.drpUnit.SelectedValue == Const._Null ? null : this.drpUnit.SelectedValue,
|
||||
ContractNum = this.txtContractNum.Text.Trim(),
|
||||
ContractNum = this.drpContractNum.SelectedValue,
|
||||
CostManageDate = Funs.GetNewDateTime(this.txtCostManageDate.Text.Trim()),
|
||||
States = BLL.Const.State_0,
|
||||
CompileMan = this.CurrUser.PersonId,
|
||||
CompileDate = DateTime.Now,
|
||||
};
|
||||
|
||||
var costManageItems = CostManageItemService.GetCostManageItemByCostManageId(this.CostManageId);
|
||||
if (costManageItems.Count ==0)
|
||||
{
|
||||
costManage.SumMoney = decimal.Parse(txtHseCost.Text.Trim());
|
||||
}
|
||||
if (type == Const.BtnSubmit)
|
||||
{
|
||||
costManage.States = BLL.Const.State_1;
|
||||
|
||||
Reference in New Issue
Block a user