Exemple #1
0
        /// <summary>
        /// AppConfig.ini 파일 초기화
        /// </summary>
        private void SetInitConfig()
        {
            try
            {
                ConfigData.Current.AppConfig.PosInfo.CasNo   = string.Empty;  //계산원 코드
                ConfigData.Current.AppConfig.PosInfo.CasName = string.Empty;  //계산원명
                ConfigData.Current.AppConfig.PosInfo.CasPass = string.Empty;  //계산원 비밀번호

                int iShiftCount = TypeHelper.ToInt32(ConfigData.Current.AppConfig.PosInfo.ShiftCount) + 1;
                ConfigData.Current.AppConfig.PosInfo.ShiftCount = iShiftCount > 9 ? iShiftCount.ToString() : "0" + iShiftCount.ToString();  //정산차수
                ConfigData.Current.AppConfig.Save();

                osiMsgBar04.MessageText = strMsg07;
                osiMsgBar04.ItemStatus  = OpenItemStatus.OK;
                Application.DoEvents();

                FrameBaseData.Current.OnDataChanged(FrameBaseDataItem.ConfigChanged, null);

                ChildManager.OnLoggedOut();
            }
            catch (Exception ex)
            {
                LogUtils.Instance.LogException(ex);
                osiMsgBar04.MessageText = strMsg08;
                osiMsgBar04.ItemStatus  = OpenItemStatus.Error;
                Application.DoEvents();
            }
            finally
            {
                ChildManager.ShowProgress(false);
                SetControlDisable(false);

                //화면 종료
                this.Close();
            }
        }