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>
<Items>
<f:TextBox ID="txtPunch_Type" runat="server" Label="尾项类别/Punch Type" LabelAlign="Right" LabelWidth="200px" Required="true" ShowRedStar="true">
</f:TextBox>
<f:DropDownList ID="txtPunch_Type" runat="server" Label="尾项类别/Punch Type" LabelWidth="200px" Required="true" ShowRedStar="true">
<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>
<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
this.ddlIsEng.SelectedValue = "N";
this.ddlIsMatI.SelectedValue = TransferPunchlistFrom.IsMatI ?? "";
this.txtPunch_Type.Text = TransferPunchlistFrom.Punch_Type;
this.txtPunch_Type.SelectedValue = TransferPunchlistFrom.Punch_Type ?? "";
if (TransferPunchlistFrom.Required_Date != null)
this.txtRequired_Date.Text = Convert.ToDateTime(TransferPunchlistFrom.Required_Date).ToString("yyyy-MM-dd");
this.txtAction_By.Text = TransferPunchlistFrom.Action_By;
@ -163,7 +163,7 @@ namespace FineUIPro.Web.Transfer
Disc = this.txtDisc.Text.Trim(),
IsEng = this.ddlIsEng.SelectedValue == "Y" ? true : false,
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),
Action_By = this.txtAction_By.Text.Trim(),
PIC = this.txtPIC.Text.Trim(),

View File

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