<ext:FormRow>
<Items>
<ext:TextBox runat="server" ID="Text502" Label="评审人员" Enabled="false" Required="true" ShowRedStar="true"></ext:TextBox>
</Items>
</ext:FormRow>
把这两个属性给去掉了
Required="true" ShowRedStar="true"
TreeID:200,
Grid1ExportClick
string[] selects = n.FlowType.Split(new char[] { ',' }); //试验领域
FlowType.SelectedValueArray = selects;
G2021004
DECLARE @Reader_temp TABLE (AID INT)
--2.具有阅读权限流程
MERGE INTO @Reader_temp
USING (SELECT DISTINCT MainAID FROM td_YWZC_Main_Reader WHERE UserName=@UserName ) R
ON AID=R.MainAID
WHEN NOT MATCHED THEN INSERT (AID) VALUES (R.MainAID);
/// </summary>
protected void MathPrice()
{
try
{
float sTotalPrice = 0.0f;
foreach (GridRow row in TestPriceGrid.Rows)
{
sTotalPrice += float.Parse(row.Values[6].ToString());
}
TotalPrice.Text = Math.Round(sTotalPrice, 2).ToString();
}
catch { }
}
<ext:Grid ID="Grid1" Title="维保清单" ShowBorder="true" ShowHeader="true" DataKeyNames="AID" BoxFlex="1" AllowCellEditing="true" ClicksToEdit="1"
runat="server" ForceFit="true" BoxConfigAlign="Stretch">
<Columns>
<ext:RowNumberField EnablePagingNumber="true" Width="50" HeaderText="序号"/>
<ext:RenderField ColumnID="MainName" DataField="MainName" HeaderText="设备名称" FieldType="String" ExpandUnusedSpace="true">
<Editor>
<ext:TextBox runat="server"/>
</Editor>
</ext:RenderField>
<ext:RenderField ColumnID="subName" DataField="subName" HeaderText="设备编号" FieldType="String" ExpandUnusedSpace="true">
<Editor>
<ext:TextBox runat="server"/>
</Editor>
</ext:RenderField>
<ext:RenderField ColumnID="Text1" DataField="Text1" HeaderText="维保频率" FieldType="String" ExpandUnusedSpace="true">
<Editor>
<ext:TextBox runat="server"/>
</Editor>
</ext:RenderField>
<ext:RenderField ColumnID="Text4" DataField="Text4" HeaderText="备注" FieldType="String" ExpandUnusedSpace="true">
<Editor>
<ext:TextBox runat="server"/>
</Editor>
</ext:RenderField>
<ext:LinkButtonField Width="50" HeaderText="删除" ConfirmTarget="Top" CommandName="Delete" IconUrl="~/res/icon/bullet_cross.png" ColumnID="Delete" />
</Columns>
<Listeners>
<ext:Listener Event="edit" Handler="onGridAfterEdit"/>
</Listeners>
</ext:Grid>
JArray ja = Grid1.GetMergedData();
foreach (JObject row in ja)
{
JObject v = (JObject)row.GetValue("values");
string MainName = v.GetValue("MainName").ToString();
string subName = v.GetValue("subName").ToString();
string Text1 = v.GetValue("Text1").ToString();
string Text4 = v.GetValue("Text4").ToString();
bool retVal = Govaze.SQLServerDAL.Factory.geta17025DAL().e_17025_Records_Sub_new(MainAID, MainName, subName, Text1, null, null, Text4,
null, null, null, 0, 0, 0, 0, getUserName(), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "", "", "", "", "", "", "", "", "", "", "", "");
if (retVal)
{
}
else
{
Alert.Show("添加维保项目失败,请重试!");
return;
}
}