赛鼎焊接修改

This commit is contained in:
2025-06-04 22:46:21 +08:00
parent d99ff19b09
commit b603b27f0b
40 changed files with 3265 additions and 118 deletions
@@ -32,6 +32,8 @@
<f:Button ID="btnNew" Text="新增" Icon="Add" EnablePostBack="false" Hidden="true"
runat="server">
</f:Button>
<f:Button ID="Button1" Text="推送" Icon="Add" runat="server" OnClick="Button1_Click">
</f:Button>
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" Icon="FolderUp"
EnableAjax="false" DisableControlBeforePostBack="false">
</f:Button>
@@ -329,5 +329,35 @@ namespace FineUIPro.Web.HSSE.CostGoods
PrinterDocService.PrinterDocMethod(Const.ProjectCostManageMenuId, Grid1.SelectedRowID, "HSSE费用管理");
}
protected void Button1_Click(object sender, EventArgs e)
{
if (Grid1.SelectedRowIndexArray.Length == 0)
{
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
return;
}
string costManageId = Grid1.SelectedRowID;
var costManage = CostManageService.GetCostManageById(costManageId);
if (costManage != null && costManage.States == Const.State_2)
{
if (string.IsNullOrEmpty(costManage.ContractNum))
{
Alert.ShowInTop("未关联合同,无法推送!", MessageBoxIcon.Warning);
}
else
{
string messaage = CostManageService.PushDataToHSE(this.CurrUser.LoginProjectId, costManage.ContractNum);
}
}
else
{
Alert.ShowInTop("未审核完成无法推送!", MessageBoxIcon.Warning);
}
}
}
}
@@ -86,6 +86,15 @@ namespace FineUIPro.Web.HSSE.CostGoods
/// </remarks>
protected global::FineUIPro.Button btnNew;
/// <summary>
/// Button1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button Button1;
/// <summary>
/// btnOut 控件。
/// </summary>
@@ -187,7 +187,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
/// </summary>
/// <param name="type"></param>
private void SaveData()
{
{
var getCost = CostManageService.GetCostManageById(this.CostManageId);
if (getCost != null)
{
@@ -227,7 +227,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
}
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
}
}
#endregion
#region
@@ -29,8 +29,10 @@
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtContractNum" runat="server" Label="合同号" MaxLength="50" FocusOnPageLoad="true">
</f:TextBox>
<%--<f:TextBox ID="txtContractNum" runat="server" Label="合同号" MaxLength="50" FocusOnPageLoad="true">
</f:TextBox>--%>
<f:DropDownList ID="drpContractNum" runat="server" Label="合同号" Required="true" ShowRedStar="true" EmptyText="-请选择-">
</f:DropDownList>
<f:DatePicker ID="txtCostManageDate" runat="server" Label="日期" EnableEdit="false">
</f:DatePicker>
</Items>
@@ -39,8 +41,9 @@
<Items>
<f:TextBox ID="txtHseCost" runat="server" Label="HSE费用总金额(元)" LabelWidth="180px" Readonly="true">
</f:TextBox>
<f:TextBox ID="txtGetCost" runat="server" Label="已支付的HSE费用(元)" LabelWidth="180px" Readonly="true">
<f:TextBox ID="txtGetCost" runat="server" Label="已支付的HSE费用(元)" LabelWidth="180px" Readonly="true">
</f:TextBox>
<f:NumberBox ID="txtSumMoney" runat="server" Label="本次申请费用(元)" LabelWidth="180px" MinValue="0" NoDecimal="false" NoNegative="true" DecimalPrecision="2" Required="true" ShowRedStar="true" Increment="0.01"></f:NumberBox>
</Items>
</f:FormRow>
<f:FormRow>
@@ -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;
@@ -60,13 +60,13 @@ namespace FineUIPro.Web.HSSE.CostGoods
protected global::FineUIPro.DropDownList drpUnit;
/// <summary>
/// txtContractNum 控件。
/// drpContractNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtContractNum;
protected global::FineUIPro.DropDownList drpContractNum;
/// <summary>
/// txtCostManageDate 控件。
@@ -95,6 +95,15 @@ namespace FineUIPro.Web.HSSE.CostGoods
/// </remarks>
protected global::FineUIPro.TextBox txtGetCost;
/// <summary>
/// txtSumMoney 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtSumMoney;
/// <summary>
/// Grid1 控件。
/// </summary>