Punch_Type改为下拉框选项

This commit is contained in:
李云虎 2024-07-30 11:58:39 +08:00
parent c93dba3c61
commit 53ab49cb5e
3 changed files with 8 additions and 5 deletions

View File

@ -60,8 +60,11 @@
</f:FormRow> </f:FormRow>
<f:FormRow> <f:FormRow>
<Items> <Items>
<f:TextBox ID="txtPunch_Type" runat="server" Label="尾项类别/Punch Type" LabelAlign="Right" LabelWidth="200px" Required="true" ShowRedStar="true"> <f:DropDownList ID="txtPunch_Type" runat="server" Label="尾项类别/Punch Type" LabelWidth="200px" Required="true" ShowRedStar="true">
</f:TextBox> <f:ListItem Value="" Text=""></f:ListItem>
<f:ListItem Value="PWD" Text="PWD"></f:ListItem>
<f:ListItem Value="FWD" Text="FWD"></f:ListItem>
</f:DropDownList>
<f:DatePicker runat="server" Label="要求完成时间/Required Date" ID="txtRequired_Date" LabelAlign="Right" LabelWidth="210px" Required="true" ShowRedStar="true"> <f:DatePicker runat="server" Label="要求完成时间/Required Date" ID="txtRequired_Date" LabelAlign="Right" LabelWidth="210px" Required="true" ShowRedStar="true">
</f:DatePicker> </f:DatePicker>
<f:TextBox ID="txtAction_By" runat="server" Label="责任单位/Action By" LabelAlign="Right" LabelWidth="200px" Width="300px" Required="true" ShowRedStar="true"> <f:TextBox ID="txtAction_By" runat="server" Label="责任单位/Action By" LabelAlign="Right" LabelWidth="200px" Width="300px" Required="true" ShowRedStar="true">

View File

@ -64,7 +64,7 @@ namespace FineUIPro.Web.Transfer
else else
this.ddlIsEng.SelectedValue = "N"; this.ddlIsEng.SelectedValue = "N";
this.ddlIsMatI.SelectedValue = TransferPunchlistFrom.IsMatI ?? ""; this.ddlIsMatI.SelectedValue = TransferPunchlistFrom.IsMatI ?? "";
this.txtPunch_Type.Text = TransferPunchlistFrom.Punch_Type; this.txtPunch_Type.SelectedValue = TransferPunchlistFrom.Punch_Type ?? "";
if (TransferPunchlistFrom.Required_Date != null) if (TransferPunchlistFrom.Required_Date != null)
this.txtRequired_Date.Text = Convert.ToDateTime(TransferPunchlistFrom.Required_Date).ToString("yyyy-MM-dd"); this.txtRequired_Date.Text = Convert.ToDateTime(TransferPunchlistFrom.Required_Date).ToString("yyyy-MM-dd");
this.txtAction_By.Text = TransferPunchlistFrom.Action_By; this.txtAction_By.Text = TransferPunchlistFrom.Action_By;
@ -163,7 +163,7 @@ namespace FineUIPro.Web.Transfer
Disc = this.txtDisc.Text.Trim(), Disc = this.txtDisc.Text.Trim(),
IsEng = this.ddlIsEng.SelectedValue == "Y" ? true : false, IsEng = this.ddlIsEng.SelectedValue == "Y" ? true : false,
IsMatI = this.ddlIsMatI.SelectedValue, IsMatI = this.ddlIsMatI.SelectedValue,
Punch_Type = this.txtPunch_Type.Text.Trim(), Punch_Type = this.txtPunch_Type.SelectedValue,
Required_Date = Funs.GetNewDateTime(this.txtRequired_Date.Text), Required_Date = Funs.GetNewDateTime(this.txtRequired_Date.Text),
Action_By = this.txtAction_By.Text.Trim(), Action_By = this.txtAction_By.Text.Trim(),
PIC = this.txtPIC.Text.Trim(), PIC = this.txtPIC.Text.Trim(),

View File

@ -129,7 +129,7 @@ namespace FineUIPro.Web.Transfer
/// 自动生成的字段。 /// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks> /// </remarks>
protected global::FineUIPro.TextBox txtPunch_Type; protected global::FineUIPro.DropDownList txtPunch_Type;
/// <summary> /// <summary>
/// txtRequired_Date 控件。 /// txtRequired_Date 控件。