Пример #1
0
        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);
        }
Пример #2
0
 public void init()
 {
     BasicInfoUtil.fillCheckBoxList(cbReferAction, "ReferenceCycleAction", -1);
     UsersBS.fillCheckedListWithUsers(cbRefferFrom, -1);
 }