Exemple #1
0
 private void MainBase_Load(object sender, EventArgs e)
 {
     if (!this.isDesigning)
     {
         this.DiskCheck();
         this.DataInfoCnt = 0;
         this.usr = User.CreateInstance();
         this.HJobList = this.usr.HistoryJobsList;
         this.HUserList = this.usr.HistoryUserList;
         this.HMailBoxList = this.usr.HistoryAddressList;
         this.usr_apc = this.usr.Application;
         this.usr_tlb = this.usr.ToolBar;
         this.usr_wnd = this.usr.Window;
         this.usr_cwc = this.usr.ColumnWidth;
         this.usr_dvf = this.usr.DataViewForm;
         this.usr_jpc = this.usr.JobOption;
         this.usrenv = UserEnvironment.CreateInstance();
         this.OptionSet(true);
         this.idv.RecvFolderSelect();
         this.FldList = this.msgc.Folders;
         if (this.idv.GetCount(4, this.usrenv.TerminalInfo.SaveTerm) > 0)
         {
             MessageDialog dialog = new MessageDialog {
                 TopMost = true
             };
             if (dialog.ShowMessage("C402", this.usrenv.TerminalInfo.SaveTerm.ToString(), "") == DialogResult.Yes)
             {
                 this.idv.SaveDateDataDelete(this.usrenv.TerminalInfo.SaveTerm);
             }
             dialog.Close();
             dialog.Dispose();
             this.uopd.Show();
             Application.DoEvents();
         }
         this.uJobInput1.HistoryJobListSet(this.HJobList);
         this.uJobMenu1.HistoryJobListSet(this.HJobList);
         this.dscl = new DispCodeList();
         this.LoadUserApplication();
         this.mnJobKey.Visible = false;
         int userKind = this.sysenv.TerminalInfo.UserKind;
         if ((this.sysenv.TerminalInfo.UserKind != 4) && !this.sysenv.TerminalInfo.Receiver)
         {
             this.DsArrangeManager = new ArrangeManager(this, this.idv);
             this.DsArrangeManager.AppendArrangeMenu(this.mnOption);
             this.DsArrangeManager.AutoRun();
         }
         this.tbbJetras.Visible = this.sysenv.TerminalInfo.Jetras;
         this.tbbJSplitter5.Visible = this.sysenv.TerminalInfo.Jetras;
         this.DisposingFlag = false;
         this.swtbl = new SWCheckTbl();
         ULogClass.LogWrite("=====< Log Start >=====");
         this.StatusChange(0);
         this.UpdateMenuItems();
         this.uopd.Close();
         this.uopd.Dispose();
     }
 }
Exemple #2
0
 private void SaveUserApplication()
 {
     int num;
     if (base.WindowState == FormWindowState.Normal)
     {
         this.usr_apc.Left = base.Location.X;
         this.usr_apc.Top = base.Location.Y;
         this.usr_apc.Right = base.Size.Width + base.Location.X;
         this.usr_apc.Bottom = base.Size.Height + base.Location.Y;
     }
     if (this.mnDataViewWindow.Checked)
     {
         this.usr_apc.MainSplitter = this.pnlSupportWindow.Width;
     }
     this.usr_apc.DataViewSplitter = this.idv.GetSplitter();
     this.usr_apc.Maximized = base.WindowState == FormWindowState.Maximized;
     this.usr_apc.CloseOnAppend = this.mnCloseOnAppend.Checked;
     this.usr_apc.ListRestriction = this.mnListRestriction.Checked;
     if (this.mnFontLarge.Checked)
     {
         num = 0;
     }
     else if (this.mnFontSmall.Checked)
     {
         num = 1;
     }
     else
     {
         num = 2;
     }
     this.usr_apc.DataViewFontSize = num;
     this.usr_apc.LogoffConfirm = this.mnLogoffConf.Checked;
     this.usr_tlb.Standard = this.mnToolbarStandard.Checked;
     this.usr_tlb.Job = this.mnToolbarJob.Checked;
     this.usr_tlb.FunctionBar = this.mnFunctionBar.Checked;
     this.usr_wnd.UserInput = this.mnLogonWindow.Checked;
     this.usr_wnd.JobInput = this.mnJobInputWindow.Checked;
     this.usr_wnd.JobMenu = this.mnJobMenuWindow.Checked;
     this.usr_wnd.DataView = this.mnDataViewWindow.Checked;
     this.usr_cwc = this.idv.GetDataViewColum();
     this.usr_dvf.ReadVisible = this.mnVisibleCount.Checked;
     this.usr_jpc.QueryFieldClear = this.mnQueryFieldClear.Checked;
     this.FldList = this.idv.GetFldList();
 }
Exemple #3
0
 public virtual void SetDataViewColum(ColumnWidthClass usr_cwc)
 {
     this.dgvDataView.Columns["clmJobCode"].Width = usr_cwc.JobCode;
     this.dgvDataView.Columns["clmOutCode"].Width = usr_cwc.OutCode;
     this.dgvDataView.Columns["clmInputNo"].Width = usr_cwc.InputInfo;
     this.dgvDataView.Columns["clmResCode"].Width = usr_cwc.ResCode;
     this.dgvDataView.Columns["clmPattern"].Width = usr_cwc.Pattern;
     this.dgvDataView.Columns["clmJobInfo"].Width = usr_cwc.JobInfo;
     this.dgvDataView.Columns["clmTimeStamp"].Width = usr_cwc.TimeStamp;
     this.dgvDataView.Columns["clmSyu"].Width = usr_cwc.DataType;
     this.dgvDataView.Columns["clmEnd"].Width = usr_cwc.EndFlag;
     this.dgvDataView.Columns["clmAirSea"].Width = usr_cwc.AirSea;
 }