示例#1
0
 private void FormRead()
 {
     this.form_state = FORM_STATE.READ;
     this.toolStripProcessing.Visible = false;
     this.dgvDealer.Enabled           = true;
     this.btnCancel.Enabled           = true;
     this.btnOK.Enabled = true;
 }
示例#2
0
 private void FormProcessing()
 {
     this.form_state = FORM_STATE.PROCESSING;
     this.toolStripProcessing.Visible = true;
     this.dgvDealer.Enabled           = false;
     this.btnCancel.Enabled           = false;
     this.btnOK.Enabled = false;
 }
 private void FormRead()
 {
     this.form_state = FORM_STATE.READ;
     this.toolStripProcessing.Visible = false;
     this.rbAnd.Enabled         = true;
     this.rbOr.Enabled          = true;
     this.cbCompareType.Enabled = true;
     this.cbDataField.Enabled   = true;
     this.txtValue.Enabled      = true;
     this.txtExpression.Enabled = true;
     this.dgvDealer.Enabled     = true;
     this.btnOK.Enabled         = true;
 }
示例#4
0
        private void FormProcessing()
        {
            this.form_state = FORM_STATE.PROCESSING;
            this.dummyTextBox.Focus();
            this.dgvRegister.Enabled      = false;
            this.btnCancel.Enabled        = false;
            this.btnSave.Enabled          = false;
            this.toolStripProcess.Visible = true;

            this.sAddr01.Enabled     = false;
            this.sAddr02.Enabled     = false;
            this.sAddr03.Enabled     = false;
            this.sBusides.Enabled    = false;
            this.sBusityp.Enabled    = false;
            this.sCompnam.Enabled    = false;
            this.sContact.Enabled    = false;
            this.sContEmail.Enabled  = false;
            this.sContTelnum.Enabled = false;
            this.sDealer.Enabled     = false;
            this.sEmail.Enabled      = false;
            this.sFaxnum.Enabled     = false;
            this.sPosition.Enabled   = false;
            this.sPrenam.Enabled     = false;
            //this.sSernum.Enabled = false;
            this.sTelnum.Enabled = false;
            this.sZipcod.Enabled = false;

            this.btnBrowseBusityp.Enabled = false;
            this.btnBrowseDealer.Enabled  = false;

            this.btnAddr01.Enabled     = false;
            this.btnAddr02.Enabled     = false;
            this.btnAddr03.Enabled     = false;
            this.btnBusides.Enabled    = false;
            this.btnBusides.Enabled    = false;
            this.btnCompnam.Enabled    = false;
            this.btnContact.Enabled    = false;
            this.btnContEmail.Enabled  = false;
            this.btnContTelnum.Enabled = false;
            this.btnEmail.Enabled      = false;
            this.btnFaxnum.Enabled     = false;
            this.btnPosition.Enabled   = false;
            this.btnPrenam.Enabled     = false;
            this.btnTelnum.Enabled     = false;
            this.btnZipcod.Enabled     = false;
        }
示例#5
0
        private void FormProcessing()
        {
            this.form_state = FORM_STATE.PROCESSING;
            this.dummyTextBox.Focus();
            this.dgvRegister.Enabled = false;
            this.btnCancel.Enabled = false;
            this.btnSave.Enabled = false;
            this.toolStripProcess.Visible = true;

            this.sAddr01.Enabled = false;
            this.sAddr02.Enabled = false;
            this.sAddr03.Enabled = false;
            this.sBusides.Enabled = false;
            this.sBusityp.Enabled = false;
            this.sCompnam.Enabled = false;
            this.sContact.Enabled = false;
            this.sContEmail.Enabled = false;
            this.sContTelnum.Enabled = false;
            this.sDealer.Enabled = false;
            this.sEmail.Enabled = false;
            this.sFaxnum.Enabled = false;
            this.sPosition.Enabled = false;
            this.sPrenam.Enabled = false;
            //this.sSernum.Enabled = false;
            this.sTelnum.Enabled = false;
            this.sZipcod.Enabled = false;

            this.btnBrowseBusityp.Enabled = false;
            this.btnBrowseDealer.Enabled = false;

            this.btnAddr01.Enabled = false;
            this.btnAddr02.Enabled = false;
            this.btnAddr03.Enabled = false;
            this.btnBusides.Enabled = false;
            this.btnBusides.Enabled = false;
            this.btnCompnam.Enabled = false;
            this.btnContact.Enabled = false;
            this.btnContEmail.Enabled = false;
            this.btnContTelnum.Enabled = false;
            this.btnEmail.Enabled = false;
            this.btnFaxnum.Enabled = false;
            this.btnPosition.Enabled = false;
            this.btnPrenam.Enabled = false;
            this.btnTelnum.Enabled = false;
            this.btnZipcod.Enabled = false;
        }
示例#6
0
        private void FormBegining()
        {
            this.form_state = FORM_STATE.BEGINING;
            this.dgvRegister.Enabled = true;
            this.dgvRegister.Focus();
            this.btnCancel.Enabled = false;
            this.btnSave.Enabled = false;
            this.toolStripProcess.Visible = false;

            this.wAddr01.Text = "";
            this.wAddr02.Text = "";
            this.wAddr03.Text = "";
            this.wBusides.Text = "";
            this.wBusityp.Text = "";
            this.wCompnam.Text = "";
            this.wContact.Text = "";
            this.wContEmail.Text = "";
            this.wContTelnum.Text = "";
            this.wDealer.Text = "";
            this.wEmail.Text = "";
            this.wFaxnum.Text = "";
            this.wPosition.Text = "";
            this.wPrenam.Text = "";
            this.wSernum.Text = " -   -";
            this.wTelnum.Text = "";
            this.wZipcod.Text = "";
            this.wRegDate.Text = "";

            this.sAddr01.Text = "";
            this.sAddr02.Text = "";
            this.sAddr03.Text = "";
            this.sBusides.Text = "";
            this.sBusityp.Text = "";
            this.sCompnam.Text = "";
            this.sContact.Text = "";
            this.sContEmail.Text = "";
            this.sContTelnum.Text = "";
            this.sDealer.Text = "";
            this.sEmail.Text = "";
            this.sFaxnum.Text = "";
            this.sPosition.Text = "";
            this.sPrenam.Text = "";
            this.sSernum.Text = " -   -";
            this.sTelnum.Text = "";
            this.sZipcod.Text = "";
            this.sRegDate.Text = "";
            this.lblBusityp_typdes.Text = "";
            this.lblDealer_Compnam.Text = "";

            this.sAddr01.Enabled = false;
            this.sAddr02.Enabled = false;
            this.sAddr03.Enabled = false;
            this.sBusides.Enabled = false;
            this.sBusityp.Enabled = false;
            this.sCompnam.Enabled = false;
            this.sContact.Enabled = false;
            this.sContEmail.Enabled = false;
            this.sContTelnum.Enabled = false;
            this.sDealer.Enabled = false;
            this.sEmail.Enabled = false;
            this.sFaxnum.Enabled = false;
            this.sPosition.Enabled = false;
            this.sPrenam.Enabled = false;
            //this.sSernum.Enabled = false;
            this.sTelnum.Enabled = false;
            this.sZipcod.Enabled = false;

            this.btnBrowseBusityp.Enabled = false;
            this.btnBrowseDealer.Enabled = false;

            this.btnAddr01.Enabled = false;
            this.btnAddr02.Enabled = false;
            this.btnAddr03.Enabled = false;
            this.btnBusides.Enabled = false;
            this.btnBusides.Enabled = false;
            this.btnCompnam.Enabled = false;
            this.btnContact.Enabled = false;
            this.btnContEmail.Enabled = false;
            this.btnContTelnum.Enabled = false;
            this.btnEmail.Enabled = false;
            this.btnFaxnum.Enabled = false;
            this.btnPosition.Enabled = false;
            this.btnPrenam.Enabled = false;
            this.btnTelnum.Enabled = false;
            this.btnZipcod.Enabled = false;
        }
示例#7
0
        private void FormReadItemF8()
        {
            this.form_state = FORM_STATE.READF8;
            this.toolStripAdd.Enabled = false;
            this.toolStripEdit.Enabled = false;
            this.toolStripDelete.Enabled = false;
            this.toolStripStop.Enabled = true;
            this.toolStripSave.Enabled = true;
            this.toolStripFirst.Enabled = false;
            this.toolStripPrev.Enabled = false;
            this.toolStripNext.Enabled = false;
            this.toolStripLast.Enabled = false;
            this.toolStripSearch.Enabled = false;
            this.toolStripInquiryAll.Enabled = false;
            this.toolStripInquiryRest.Enabled = false;
            this.toolStripInquiryCondition.Enabled = false;
            this.toolStripSearchArea.Enabled = false;
            this.toolStripSearchCode.Enabled = false;
            this.toolStripSearchContact.Enabled = false;
            this.toolStripSearchName.Enabled = false;
            this.toolStripPrint.Enabled = false;
            this.toolStripPrintBigEnv.Enabled = false;
            this.toolStripPrintLabel3Col.Enabled = false;
            this.toolStripPrintLittleEnv.Enabled = false;

            this.toolStripProcessing.Visible = false;

            this.txtDealer.Read_Only = true;
            this.txtPrenam.Read_Only = true;
            this.txtCompnam.Read_Only = true;
            this.txtAddr01.Read_Only = true;
            this.txtAddr02.Read_Only = true;
            this.txtAddr03.Read_Only = true;
            this.txtZipcod.Read_Only = true;
            this.txtTelnum.Read_Only = true;
            this.txtFaxnum.Read_Only = true;
            this.txtContact.Read_Only = true;
            this.txtPosition.Read_Only = true;
            this.txtBusides.Read_Only = true;
            this.txtArea.Read_Only = true;
            this.txtRemark.Read_Only = true;

            this.btnBrowseArea.Enabled = false;
            this.dgvMsg.Enabled = true;
            this.dgvMsg.Focus();
        }
示例#8
0
        private void FormProcessing()
        {
            this.form_state = FORM_STATE.PROCESSING;
            this.toolStripAdd.Enabled = false;
            this.toolStripEdit.Enabled = false;
            this.toolStripDelete.Enabled = false;
            this.toolStripStop.Enabled = false;
            this.toolStripSave.Enabled = false;
            this.toolStripFirst.Enabled = false;
            this.toolStripPrev.Enabled = false;
            this.toolStripNext.Enabled = false;
            this.toolStripLast.Enabled = false;
            this.toolStripSearch.Enabled = false;
            this.toolStripInquiryAll.Enabled = false;
            this.toolStripInquiryRest.Enabled = false;
            this.toolStripInquiryCondition.Enabled = false;
            this.toolStripSearchArea.Enabled = false;
            this.toolStripSearchCode.Enabled = false;
            this.toolStripSearchContact.Enabled = false;
            this.toolStripSearchName.Enabled = false;
            this.toolStripPrint.Enabled = false;
            this.toolStripPrintBigEnv.Enabled = false;
            this.toolStripPrintLabel3Col.Enabled = false;
            this.toolStripPrintLittleEnv.Enabled = false;

            this.toolStripProcessing.Visible = true;

            this.txtDealer.Read_Only = true;
            this.txtPrenam.Read_Only = true;
            this.txtCompnam.Read_Only = true;
            this.txtAddr01.Read_Only = true;
            this.txtAddr02.Read_Only = true;
            this.txtAddr03.Read_Only = true;
            this.txtZipcod.Read_Only = true;
            this.txtTelnum.Read_Only = true;
            this.txtFaxnum.Read_Only = true;
            this.txtContact.Read_Only = true;
            this.txtPosition.Read_Only = true;
            this.txtBusides.Read_Only = true;
            this.txtArea.Read_Only = true;
            this.txtRemark.Read_Only = true;

            this.btnBrowseArea.Enabled = false;

            this.txtDummy.Focus();

            #region inline form
            if (this.dgvMsg.Parent.Controls.Find("inline_date", true).Length > 0)
            {
                CustomDateTimePicker date = (CustomDateTimePicker)this.dgvMsg.Parent.Controls.Find("inline_date", true)[0];
                date.Read_Only = true;
            }
            if (this.dgvMsg.Parent.Controls.Find("inline_name", true).Length > 0)
            {
                CustomTextBox name = (CustomTextBox)this.dgvMsg.Parent.Controls.Find("inline_name", true)[0];
                name.Read_Only = true;
            }
            if (this.dgvMsg.Parent.Controls.Find("inline_desc", true).Length > 0)
            {
                CustomTextBox desc = (CustomTextBox)this.dgvMsg.Parent.Controls.Find("inline_desc", true)[0];
                desc.Read_Only = true;
            }
            #endregion inline form
        }
示例#9
0
 private void FormRead()
 {
     this.form_state = FORM_STATE.READ;
     this.toolStripProcessing.Visible = false;
     this.dgvDealer.Enabled = true;
     this.btnCancel.Enabled = true;
     this.btnOK.Enabled = true;
 }
示例#10
0
 private void FormProcessing()
 {
     this.form_state = FORM_STATE.PROCESSING;
     this.toolStripProcessing.Visible = true;
     this.dgvDealer.Enabled = false;
     this.btnCancel.Enabled = false;
     this.btnOK.Enabled = false;
 }
示例#11
0
        private void FormBegining()
        {
            this.form_state          = FORM_STATE.BEGINING;
            this.dgvRegister.Enabled = true;
            this.dgvRegister.Focus();
            this.btnCancel.Enabled        = false;
            this.btnSave.Enabled          = false;
            this.toolStripProcess.Visible = false;

            this.wAddr01.Text     = "";
            this.wAddr02.Text     = "";
            this.wAddr03.Text     = "";
            this.wBusides.Text    = "";
            this.wBusityp.Text    = "";
            this.wCompnam.Text    = "";
            this.wContact.Text    = "";
            this.wContEmail.Text  = "";
            this.wContTelnum.Text = "";
            this.wDealer.Text     = "";
            this.wEmail.Text      = "";
            this.wFaxnum.Text     = "";
            this.wPosition.Text   = "";
            this.wPrenam.Text     = "";
            this.wSernum.Text     = " -   -";
            this.wTelnum.Text     = "";
            this.wZipcod.Text     = "";
            this.wRegDate.Text    = "";

            this.sAddr01.Text           = "";
            this.sAddr02.Text           = "";
            this.sAddr03.Text           = "";
            this.sBusides.Text          = "";
            this.sBusityp.Text          = "";
            this.sCompnam.Text          = "";
            this.sContact.Text          = "";
            this.sContEmail.Text        = "";
            this.sContTelnum.Text       = "";
            this.sDealer.Text           = "";
            this.sEmail.Text            = "";
            this.sFaxnum.Text           = "";
            this.sPosition.Text         = "";
            this.sPrenam.Text           = "";
            this.sSernum.Text           = " -   -";
            this.sTelnum.Text           = "";
            this.sZipcod.Text           = "";
            this.sRegDate.Text          = "";
            this.lblBusityp_typdes.Text = "";
            this.lblDealer_Compnam.Text = "";

            this.sAddr01.Enabled     = false;
            this.sAddr02.Enabled     = false;
            this.sAddr03.Enabled     = false;
            this.sBusides.Enabled    = false;
            this.sBusityp.Enabled    = false;
            this.sCompnam.Enabled    = false;
            this.sContact.Enabled    = false;
            this.sContEmail.Enabled  = false;
            this.sContTelnum.Enabled = false;
            this.sDealer.Enabled     = false;
            this.sEmail.Enabled      = false;
            this.sFaxnum.Enabled     = false;
            this.sPosition.Enabled   = false;
            this.sPrenam.Enabled     = false;
            //this.sSernum.Enabled = false;
            this.sTelnum.Enabled = false;
            this.sZipcod.Enabled = false;

            this.btnBrowseBusityp.Enabled = false;
            this.btnBrowseDealer.Enabled  = false;

            this.btnAddr01.Enabled     = false;
            this.btnAddr02.Enabled     = false;
            this.btnAddr03.Enabled     = false;
            this.btnBusides.Enabled    = false;
            this.btnBusides.Enabled    = false;
            this.btnCompnam.Enabled    = false;
            this.btnContact.Enabled    = false;
            this.btnContEmail.Enabled  = false;
            this.btnContTelnum.Enabled = false;
            this.btnEmail.Enabled      = false;
            this.btnFaxnum.Enabled     = false;
            this.btnPosition.Enabled   = false;
            this.btnPrenam.Enabled     = false;
            this.btnTelnum.Enabled     = false;
            this.btnZipcod.Enabled     = false;
        }
示例#12
0
 private void FormRead()
 {
     this.form_state = FORM_STATE.READ;
     this.toolStripProcessing.Visible = false;
     this.rbAnd.Enabled = true;
     this.rbOr.Enabled = true;
     this.cbCompareType.Enabled = true;
     this.cbDataField.Enabled = true;
     this.txtValue.Enabled = true;
     this.txtExpression.Enabled = true;
     this.dgvDealer.Enabled = true;
     this.btnOK.Enabled = true;
 }