Beispiel #1
0
 public LostRenewForm(SnWindow parent_window)
     : this()
 {
     this.parent_window = parent_window;
     this.G = this.parent_window.G;
     this.BackColor = ColorResource.BACKGROUND_COLOR_BEIGE;
 }
Beispiel #2
0
 public SupportNoteWindow(SnWindow parent_window)
     : this()
 {
     Thread.CurrentThread.CurrentCulture = new CultureInfo("th-TH");
     this.main_form = parent_window.main_form;
     this.parent_window = parent_window;
     this.FormRead();
 }
Beispiel #3
0
 public SupportNoteWindow(SnWindow parent_window, Serial serial, List<SerialPassword> password_list)
     : this()
 {
     this.main_form = parent_window.main_form;
     this.parent_window = parent_window;
     this.serial = serial;
     this.password_list = password_list;
 }
Beispiel #4
0
 public DealerList(SnWindow parent_window, string dealer_code)
     : this()
 {
     this.parent_window = parent_window;
     this.selected_dealer_code = dealer_code;
     this.sort_mode = SORT_MODE.DEALER;
     this.FillInDatagrid();
     this.SetSelectedItem();
 }
Beispiel #5
0
        public SellProgram2nd(SnWindow parent_window)
        {
            InitializeComponent();

            this.parent_window = parent_window;
            this.G = this.parent_window.G;

            this.getDealer();
        }
Beispiel #6
0
 public UpNewRwtLineForm(SnWindow parent_form, DIALOG_TYPE dialog_type)
 {
     InitializeComponent();
     this.parent_form = parent_form;
     this.G = this.parent_form.G;
     this.dialog_type = dialog_type;
     verext = (this.dialog_type == DIALOG_TYPE.UP_NEWRWT ? "1" : (this.dialog_type == DIALOG_TYPE.UP_NEWRWT_JOB ? "2" : this.parent_form.serial.verext));
     this.Text = (this.dialog_type == DIALOG_TYPE.UP_NEWRWT_JOB ? "Gen 'Up New RWT + Job' line" : this.Text);
 }
Beispiel #7
0
        public GenerateSNForm(SnWindow parent_window)
        {
            InitializeComponent();
            this.parent_window = parent_window;
            this.G = this.parent_window.G;
            this.BackColor = ColorResource.BACKGROUND_COLOR_BEIGE;
            //this.chkCDTraining.CheckState = CheckState.Checked;

            this.mskSernum.Enter += new EventHandler(this.onControlEnterHandler);
            this.numQty.Enter += new EventHandler(this.onControlEnterHandler);
            this.txtVersion.Enter += new EventHandler(this.onControlEnterHandler);
            this.txtDealer.Enter += new EventHandler(this.onControlEnterHandler);

            this.txtVersion.Leave += new EventHandler(this.onControlLeaveHandler);
            this.numQty.Leave += new EventHandler(this.onControlLeaveHandler);
            this.mskSernum.Leave += new EventHandler(this.onControlLeaveHandler);
            this.txtDealer.Leave += new EventHandler(this.onControlLeaveHandler);

            this.mskSernum.GotFocus += new EventHandler(this.onControlFocusedHandler);
            this.numQty.GotFocus += new EventHandler(this.onControlFocusedHandler);
            this.txtVersion.GotFocus += new EventHandler(this.onControlFocusedHandler);
            this.txtDealer.GotFocus += new EventHandler(this.onControlFocusedHandler);
            this.chkCDTraining.GotFocus += new EventHandler(this.onControlFocusedHandler);
            this.chkNewRwt.GotFocus += new EventHandler(this.onControlFocusedHandler);
            this.chkNewRwtJob.GotFocus += new EventHandler(this.onControlFocusedHandler);
            this.btnOK.GotFocus += new EventHandler(this.onControlFocusedHandler); ;
            this.btnCancel.GotFocus += new EventHandler(this.onControlFocusedHandler);

            this.mskSernum.Leave += new EventHandler(this.validateSernumFieldLeave);
            this.txtDealer.Leave += new EventHandler(this.validateDealerFieldLeave);

            this.chkNewRwt.CheckedChanged += new EventHandler(this.onCheckBoxStateChange);
            this.chkNewRwtJob.CheckedChanged += new EventHandler(this.onCheckBoxStateChange);

            this.getDealer();

            this.numQty.Leave += delegate
            {
                if (this.numQty.Text.Length == 0)
                {
                    this.numQty.Text = "1";
                }
            };
            this.txtVersion.Leave += delegate
            {
                if (this.txtVersion.Text.Length == 0)
                {
                    if (ValidateSN.Check(this.mskSernum.Text))
                    {
                        this.txtVersion.Text = this.mskSernum.Text.Substring(2, 1) + "." + this.mskSernum.Text.Substring(3, 1);
                    }
                }
            };

            this.form_mode = FORM_MODE.EDIT;
        }
Beispiel #8
0
        public SellBookForm(SnWindow parent_window)
        {
            InitializeComponent();
            this.parent_window = parent_window;
            this.G = this.parent_window.G;
            this.form_mode = FORM_MODE.EDIT;

            List<MaskedTextBox> lmsk = new List<MaskedTextBox>();
            lmsk.Add(this.mskAsDate);
            List<DateTimePicker> ldtp = new List<DateTimePicker>();
            ldtp.Add(this.dpAsDate);
            PairDatePickerWithMaskedTextBox.Attach(lmsk, ldtp);
        }
Beispiel #9
0
 //public CloudsrvFormDialog(SnWindow parent_window)
 //    : this()
 //{
 //    this.parent_window = parent_window;
 //}
 public CloudsrvFormDialog(SnWindow parent_window, CloudSrv cs = null)
     : this()
 {
     this.parent_window = parent_window;
 }
Beispiel #10
0
 public ImportListForm(SnWindow parent_window)
 {
     InitializeComponent();
     this.parent_window = parent_window;
     this.G = this.parent_window.G;
 }
Beispiel #11
0
 private void sNToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.sn_wind == null)
     {
         this.sn_wind = new SnWindow(this);
         this.sn_wind.G = this.G;
         this.sn_wind.MdiParent = this;
         this.sn_wind.WindowState = FormWindowState.Maximized;
         this.sn_wind.Show();
     }
     else
     {
         this.sn_wind.Activate();
         if (sn_wind.current_focused_control != null)
         {
             sn_wind.current_focused_control.Focus();
         }
     }
 }
Beispiel #12
0
 private void btnViewDetail_Click(object sender, EventArgs e)
 {
     if (this.main_form.sn_wind != null)
     {
         if (this.main_form.sn_wind.serial.id != this.serial.id)
         {
             this.main_form.sn_wind.serial = this.serial;
             this.main_form.sn_wind.toolStripReload.PerformClick();
         }
         this.main_form.sn_wind.Activate();
     }
     else
     {
         SnWindow sn_wind = new SnWindow(this.main_form);
         this.main_form.sn_wind = sn_wind;
         sn_wind.MdiParent = this.main_form;
         sn_wind.Show();
     }
 }
Beispiel #13
0
 public SerialPasswordDialog(MainForm main_form, SnWindow sn_wind)
 {
     InitializeComponent();
     this.main_form = main_form;
     this.sn_wind = sn_wind;
 }
Beispiel #14
0
 public SNInquiryWindow(SnWindow parentWindow, INQUIRY_TYPE inquiry_type)
     : this()
 {
     this.parentWindow = parentWindow;
     this.inquiry_type = inquiry_type;
 }
Beispiel #15
0
 public MAFormDialog(SnWindow parent_window)
     : this()
 {
     this.parent_window = parent_window;
 }