protected void Button3_Click(object sender, EventArgs e) { string Checkbox_Value = (string)Common.sink("Checkbox", MethodType.Post, 2000, 1, DataType.Str); string[] Checkbox_Value_Array = Checkbox_Value.Split(','); Int32 IDX = 0; for (int i = 0; i < Checkbox_Value_Array.Length; i++) { if (Int32.TryParse(Checkbox_Value_Array[i], out IDX)) { CommandAssembleEntity et = new CommandAssembleEntity(); et.DataTable_Action_ = DataTable_Action.Delete; et.ID = IDX; BusinessFacadeShanliTech_HLD_Business.CommandAssembleInsertUpdateDelete(et); } } EventMessage.MessageBox(1, "批量删除成功", string.Format("批量删除({0})成功!", Checkbox_Value), Icon_Type.OK, Common.GetHomeBaseUrl("AssembleCmd_SaveUpdate.aspx?DeviceID=" + DeviceID + "&DeviceModel=" + DeviceModel + "&CmdIdentity=" + CmdIdentity + "&BackUrl=" + BackUrl)); }
/// <summary> /// 初始化数据 /// </summary> /// <param name="ut"></param> private void OnStartData(CommandAssembleEntity ut) { DeviceModel_Disp.Text = DeviceModel_Input.Text = DeviceModel; int underlineIndex = ut.CommandIdentity.IndexOf("_"); if (underlineIndex != -1) { CmdType_DropDown.SelectedValue = ut.CommandIdentity.Substring(0, underlineIndex); InitCmdIdentityDropDown(); } CommandIdentity_DropDown.SelectedValue = (string.IsNullOrEmpty(CmdIdentity) ? ut.CommandIdentity.Substring(underlineIndex + 1) : CmdIdentity); CommandIdentity_Disp.Text = (string.IsNullOrEmpty(CmdIdentity) ? ut.CommandIdentity : CmdIdentity); CommandName_Input.Text = CommandName_Disp.Text = ut.CommandName.ToString(); CommandCode_Input.Text = CommandCode_Disp.Text = ut.CommandCode.ToString(); }