Exemplo n.º 1
0
        /// <summary>
        /// Login화면으로 이동
        /// </summary>
        private void GotoLogin()
        {
            this.DialogResult = DialogResult.OK;

            // 로그인 페이지이동
            ChildManager.ShowForm(string.Empty, "WSWD.WmallPos.POS.SO.dll", "WSWD.WmallPos.POS.SO.VC.POS_SO_M001");
        }
Exemplo n.º 2
0
        public void OnValidateOpen(ValidateOpenStatus validateStatus)
        {
            if (validateStatus == ValidateOpenStatus.LastDateNotClosed)
            {
                var dres = ShowMessageBox(MessageDialogType.Question, "WN0001", MSG_ED_CLOSE_ASK);
                if (dres == DialogResult.Yes)
                {
                    // goto 마감처리화면
                    // show Popup
                    var edForm = ChildManager.ShowForm(string.Empty, "WSWD.WmallPos.POS.ED.dll",
                                                       "WSWD.WmallPos.POS.ED.VC.POS_ED_P003", false, true);
                    edForm.Unload += new EventHandler(edForm_Unload);
                }
                else
                {
                    // 프로그램 종료
                    this.DialogResult = DialogResult.Ignore;
                }
            }
            else if (validateStatus == ValidateOpenStatus.NeedOpen)
            {
                // 개설한다
                var openForm = ChildManager.ShowForm(string.Empty, "WSWD.WmallPos.POS.SD.dll",
                                                     "WSWD.WmallPos.POS.SD.VC.POS_SD_P001");
                openForm.Unload += new EventHandler(openForm_Unload);
            }
            else
            {
                if (validateStatus == ValidateOpenStatus.UpdateEodFlagLogin)
                {
                    var res = ShowMessageBox(MessageDialogType.Question, "CODE",
                                             string.Format(MSG_OPENNED_CONT_ASK, DateTime.Today));
                    if (res == DialogResult.No)
                    {
                        // 프로그램 종료
                        this.DialogResult = DialogResult.Ignore;
                        return;
                    }

                    ConfigData.Current.AppConfig.PosInfo.EodFlag = "N";
                    ConfigData.Current.AppConfig.Save();
                }

                // 로그인한다
                GotoLogin();
            }
        }
Exemplo n.º 3
0
        void edForm_Unload(object sender, EventArgs e)
        {
            FormBase form = (FormBase)sender;

            if (form.DialogResult == DialogResult.OK)
            {
                // 개설한다
                var openForm = ChildManager.ShowForm(string.Empty, "WSWD.WmallPos.POS.SD.dll",
                                                     "WSWD.WmallPos.POS.SD.VC.POS_SD_P001");
                openForm.Unload += new EventHandler(openForm_Unload);
            }
            else
            {
                // close app
                this.DialogResult = DialogResult.Ignore;
            }
        }
Exemplo n.º 4
0
 private void button10_Click(object sender, EventArgs e)
 {
     var edForm = ChildManager.ShowForm("POS정산", "WSWD.WmallPos.POS.ED.dll", "WSWD.WmallPos.POS.ED.VC.POS_ED_P003", new object[] { true });
 }