private void init() { cmbPayType.Items.Clear(); ComboBoxItem item = new ComboBoxItem("چک", "0"); cmbPayType.Items.Add(item); item = new ComboBoxItem("نقد", "1"); cmbPayType.Items.Add(item); BasicInfoUtil.fillCheckBoxList(cbInsuranceCompany, "InsuranceCompany", -1); BasicInfoUtil.fillCheckBoxList(cbBankId, "Bank", -1); cmbMaturityDate.SelectedIndex = 0; cmbMaturityDate_SelectedIndexChanged(cmbMaturityDate, null); cmbEntryDate.SelectedIndex = 0; cmbEntryDate_SelectedIndexChanged(cmbEntryDate, null); }
public void init() { if (LetterBL.LETTER_TYPE_SEND.Equals(_letterType)) { txtRecievedLetterDate.Enabled = false; txtRecLetterDateTo.Visible = false; txtRecievedLetterNumber.Visible = false; lblRecievedLetterDate.Visible = false; lblRecievedLetterNumber.Visible = false; pnlRecLetterDate.Visible = false; cmbCompareInputLetterDate.Visible = false; this.Text = "نامه صادره"; lblInputRegisterNumber.Text = "شماره ثبت ورودی : "; } else { this.Text = "نامه وارده"; lblInputRegisterNumber.Text = "شماره ثبت خروجی : "; } //BasicInfoUtil.fillComboBox(cmbInsuranceType, "InsuranceType", -1); BasicInfoUtil.fillCheckBoxList(cbListInsuranceType, "InsuranceType", -1); BasicInfoUtil.fillCheckBoxList(cmbManagemtAction, "managementAction", -1); BasicInfoUtil.fillCheckBoxList(cbLetterStateId, "LetterState", -1); UsersBS.fillCheckedListWithUsers(cbReferenceUserId, -1); UsersBS.fillCheckedListWithUsers(cbRefferFrom, -1); cmbArchive.SelectedIndex = 0; cmbFinalConfirm.SelectedIndex = 0; cmbManagerAction.SelectedIndex = 0; cmbCompareLetterDate.SelectedIndex = 0; cmbCompareInputLetterDate.SelectedIndex = 0; cmbCompareInsuranceDate.SelectedIndex = 0; cmbCompareLetterDate_SelectedIndexChanged(cmbCompareLetterDate, null); cmbCompareInputLetterDate_SelectedIndexChanged(cmbCompareInputLetterDate, null); cmbCompareInsuranceDate_SelectedIndexChanged(cmbCompareInsuranceDate, null); }
public void init() { BasicInfoUtil.fillCheckBoxList(cbReferAction, "ReferenceCycleAction", -1); UsersBS.fillCheckedListWithUsers(cbRefferFrom, -1); }