1
This commit is contained in:
@@ -99,6 +99,18 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
{
|
||||
this.dpkCompileDate.Text = string.Format("{0:yyyy-MM-dd}", ActionWorkLedger.ReportDate);
|
||||
}
|
||||
if (ActionWorkLedger.KeyWorkNum != null)
|
||||
{
|
||||
this.txtKeyWorkNum.Text = ActionWorkLedger.KeyWorkNum.ToString();
|
||||
}
|
||||
if (ActionWorkLedger.KeyWorkOKNum != null)
|
||||
{
|
||||
this.txtKeyWorkOKNum.Text = ActionWorkLedger.KeyWorkOKNum.ToString();
|
||||
}
|
||||
if (!string.IsNullOrEmpty(ActionWorkLedger.KeyWorkOKRate))
|
||||
{
|
||||
this.txtKeyWorkOKRate.Text = ActionWorkLedger.KeyWorkOKRate;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -237,6 +249,9 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
}
|
||||
ActionWorkLedger.YearId = Funs.GetNewIntOrZero(this.ddlYearId.SelectedValue);
|
||||
ActionWorkLedger.Quarter = Funs.GetNewIntOrZero(this.ddlQuarter.SelectedValue);
|
||||
ActionWorkLedger.KeyWorkNum = Funs.GetNewIntOrZero(this.txtKeyWorkNum.Text.Trim());
|
||||
ActionWorkLedger.KeyWorkOKNum = Funs.GetNewIntOrZero(this.txtKeyWorkOKNum.Text.Trim());
|
||||
ActionWorkLedger.KeyWorkOKRate = this.txtKeyWorkOKRate.Text.Trim();
|
||||
if (string.IsNullOrEmpty(this.ActionWorkLedgerId))
|
||||
{
|
||||
this.ActionWorkLedgerId = SQLHelper.GetNewID(typeof(Model.Information_ActionWorkLedger)); ActionWorkLedger.ActionWorkLedgerId = this.ActionWorkLedgerId;
|
||||
@@ -530,5 +545,17 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected void txtKeyWorkNum_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
decimal keyWorkNum = Funs.GetNewDecimalOrZero(this.txtKeyWorkNum.Text.Trim());
|
||||
decimal keyWorkOKNum = Funs.GetNewDecimalOrZero(this.txtKeyWorkOKNum.Text.Trim());
|
||||
string rate = string.Empty;
|
||||
if (keyWorkNum > 0)
|
||||
{
|
||||
rate = (decimal.Round(keyWorkOKNum / keyWorkNum, 4) * 100).ToString("0.##") + "%";
|
||||
}
|
||||
this.txtKeyWorkOKRate.Text = rate;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user