//清除条件 private void clearCondition() { //审核状态 DropDownListState.ClearSelection(); DropDownListState.Items[0].Selected = true; DropDownListFatherLogic.ClearSelection(); DropDownListFatherLogic.Items[0].Selected = true; DropDownListColour.ClearSelection(); DropDownListColour.Items[0].Selected = true; //入库单编号 TextBoxCodeWG.Text = string.Empty; TextBoxMCodeWG.Text = string.Empty; TextBoxMNameWG.Text = string.Empty; TextBoxMStandardWG.Text = string.Empty; TextBoxDateWG.Text = string.Empty; TextBoxZDR.Text = string.Empty; TextBoxCAIZHI.Text = string.Empty; TextBoxSum.Text = string.Empty; TextBoxSHnum.Text = string.Empty; TextBoxUprice.Text = string.Empty; drp_xposition.SelectedIndex = 0; drp_Warhouse.SelectedIndex = 0; TextBoxVerifier.Text = string.Empty; TextBoxPTC.Text = string.Empty; TextBoxNote.Text = string.Empty; TextBoxStartDate.Text = string.Empty; TextBoxEndDate.Text = string.Empty; TextBoxLotNum.Text = string.Empty; }
//清除条件 private void clearCondition() { //审核状态 DropDownListState.ClearSelection(); DropDownListState.Items[0].Selected = true; //超额数量 DropDownListcesl.ClearSelection(); DropDownListcesl.Items[0].Selected = true; //红蓝字 DropDownListColour.ClearSelection(); DropDownListColour.Items[0].Selected = true; DropDownListGJ.ClearSelection(); DropDownListGJ.Items[0].Selected = true; DropDownListHX.ClearSelection(); DropDownListHX.Items[0].Selected = true; DropDownListFatherLogic.ClearSelection(); DropDownListFatherLogic.Items[0].Selected = true; //入库单编号 TextBoxCodeWG.Text = string.Empty; //供应商 TextBoxSupplierWG.Text = string.Empty; TextBoxDateWG.Text = string.Empty; TextBoxStartDate.Text = string.Empty; // TextBoxMCodeWG.Text = string.Empty; TextBoxMNameWG.Text = string.Empty; TextBoxMStandardWG.Text = string.Empty; TextBoxCZ.Text = string.Empty; TextBoxTH.Text = string.Empty; TextBoxMPTCWG.Text = string.Empty; TextBoxPH.Text = string.Empty; TextBoxMType.Text = string.Empty; TextBoxZDR.Text = string.Empty; TextBoxClerkWG.Text = string.Empty; TextBoxHDBH.Text = string.Empty; CheckBoxPrint.Checked = false; }