protected override IData MakeExNaccsData(Naccs.Common.Generator.ItemInfo.JobDataStatus jds) { IData data = new NaccsData { JobData = this.Items.GetDataList(jds) }; DivideConfig jobConfig = (DivideConfig) base.JobConfig; if (base.JobConfig.jobStyle == JobStyle.divide) { data.Header.JobCode = jobConfig.record.jobcode; data.Header.DispCode = jobConfig.record.dispcode; } if (jds == Naccs.Common.Generator.ItemInfo.JobDataStatus.jdNone) { data.Header.OutCode = base.ExNaccsData.Header.OutCode; } data.Header.System = jobConfig.system.ToString(); data.Header.InputInfo = base.txtInputInfo.Text; data.Header.IndexInfo = base.ExNaccsData.Header.IndexInfo; if (jds == Naccs.Common.Generator.ItemInfo.JobDataStatus.jdSend) { for (int i = 0; i < this.AuCtrlInfoList.Count; i++) { List<string> idData = this.Items.GetIdData(this.AuCtrlInfoList[i].ID); for (int j = 0; j < idData.Count; j++) { string str = idData[j].Trim(); if (!string.IsNullOrEmpty(str) && !this.AuCtrlInfoList[i].AuList.Contains(str)) { this.AuCtrlInfoList[i].AuList.Add(str); } } } } this.SaveHistoryFile(this.stHistoryFile); return data; }
protected virtual IData MakeExNaccsData(Naccs.Common.Generator.ItemInfo.JobDataStatus jds) { return null; }
private void PrinterSetting(Naccs.Common.Print.Print prt) { string name = ""; int binNo = 0; int count = 1; string str2 = ""; int t = 0; int l = 0; string size = ""; string orientation = ""; PrintSetups setups = PrintSetups.CreateInstance(); if ((this.mData.OutCode.Trim().Length > 0) && (this.mJobConfig != null)) { foreach (OutCodeClass class2 in setups.Forms.OutCodeList) { if ((class2.Name.Trim() == this.mData.OutCode.Substring(0, 6)) || (class2.Name.Trim() == this.mData.OutCode.Substring(0, 4))) { name = class2.Printer; binNo = class2.BinNo; count = class2.Count; break; } } } if (name.Length == 0) { if (string.IsNullOrEmpty(setups.DefaultInfo.Printer)) { PrinterSettings settings = new PrinterSettings(); if (!settings.IsValid) { throw new NaccsException(Naccs.Common.MessageKind.Error, 0x25f, Resources.ResourceManager.GetString("CORE76")); } name = settings.PrinterName; binNo = settings.DefaultPageSettings.PaperSource.RawKind; } else { name = setups.DefaultInfo.Printer; binNo = setups.DefaultInfo.BinNo; } } if (!PrinterValid(name)) { if (this.mPrintFlg != 0) { throw new NaccsException(Naccs.Common.MessageKind.Error, 0x25a, Resources.ResourceManager.GetString("CORE79")); } if (PrinterValid(setups.DefaultInfo.Printer)) { name = setups.DefaultInfo.Printer; binNo = setups.DefaultInfo.BinNo; } else { PrinterSettings settings2 = new PrinterSettings(); name = settings2.PrinterName; binNo = settings2.DefaultPageSettings.PaperSource.RawKind; } } foreach (PrinterInfoClass class3 in setups.PrinterInfoList) { if (class3.Name.Trim() == name.Trim()) { if (class3.DoublePrint) { str2 = "Vertical"; } else { str2 = "Simplex"; } foreach (BinClass class4 in class3.BinList) { if (class4.No == binNo) { t = class4.T; l = class4.L; size = class4.Size; orientation = class4.Orientation; break; } } break; } } prt.PrinterName = name; prt.BinNo = binNo; prt.Copies = count; prt.DoublePrint = str2; PathInfo info = PathInfo.CreateInstance(); prt.PrinterSettingsPath = info.PrinterSetup; prt.Top = t; prt.Left = l; prt.PaperSize = size; prt.Orientation = orientation; }
public void SetData(List<string> stList, Naccs.Common.Generator.ItemInfo.JobDataStatus jds, string tblName) { int newIndex = -1; try { if (base.bsRepeat != null) { newIndex = base.bsRepeat.Position; base.bsRepeat.RaiseListChangedEvents = false; base.bsRepeat.SuspendBinding(); } base.Items.SetDataList(stList, jds, tblName); } finally { if (base.bsRepeat != null) { base.bsRepeat.RaiseListChangedEvents = true; base.bsRepeat.ResumeBinding(); base.bsRepeat.ResetBindings(false); if (base.bsRepeat.Position == newIndex) { ListChangedEventArgs e = new ListChangedEventArgs(ListChangedType.ItemMoved, newIndex); base.bsRepeat.OnPositionChangedEx(e); } else { base.bsRepeat.Position = newIndex; } if (base.Items.CheckDataExists(base.bsRepeat.DataMember, base.bsRepeat.Position + base.repBindingSources.Count)) { base.lblNextpage.Text = "*"; } else { base.lblNextpage.Text = ""; } } } }
public string GetData(Naccs.Common.Generator.ItemInfo.JobDataStatus jds) { return base.Items.GetDataList(jds); }
protected override IData MakeExNaccsData(Naccs.Common.Generator.ItemInfo.JobDataStatus jds) { if (jds == Naccs.Common.Generator.ItemInfo.JobDataStatus.jdNone) { return this.MakePrtExNaccsData(); } NaccsData data = new NaccsData { Style = JobStyle.combi }; for (int i = 0; i < this.JPList.Count; i++) { data.JobIndex = i; data.SetSubJobData(this.JPList[i].JP.Items.GetDataList(jds), this.JPList[i].JCode); } CombiConfig jobConfig = (CombiConfig) base.JobConfig; if (base.JobConfig.jobStyle == JobStyle.combi) { data.Header.JobCode = jobConfig.jobcode; data.Header.DispCode = jobConfig.dispcode; } data.Header.System = jobConfig.system.ToString(); data.Header.InputInfo = base.txtInputInfo.Text; data.Header.IndexInfo = base.ExNaccsData.Header.IndexInfo; if (jds == Naccs.Common.Generator.ItemInfo.JobDataStatus.jdSend) { for (int j = 0; j < this.JPList.Count; j++) { for (int k = 0; k < this.JPList[j].AuCtrlInfoList.Count; k++) { List<string> idData = this.JPList[j].JP.Items.GetIdData(this.JPList[j].AuCtrlInfoList[k].ID); for (int m = 0; m < idData.Count; m++) { string str = idData[m].Trim(); if (!string.IsNullOrEmpty(str) && !this.JPList[j].AuCtrlInfoList[k].AuList.Contains(str)) { this.JPList[j].AuCtrlInfoList[k].AuList.Add(str); } } } this.SaveHistoryFile(this.JPList[j].HistoryFile, j); } } return data; }
private void InitPnlCtlColor(Naccs.Core.Job.JobPanel JP) { try { JP.Visible = false; JP.ChangeCtlColor(JP); } finally { JP.Visible = true; } }
private void InitJobPanel(Naccs.Core.Job.JobPanel JP) { JP.OnShowGuide += new EventHandler(this.ShowCmbGuide); JP.ContextMenuStrip = base.PopMenu; }
public PathItem(Naccs.Core.Settings.PathType type, string value) { this.PathType = type; this.Value = value; }
protected override IData MakeExNaccsData(Naccs.Common.Generator.ItemInfo.JobDataStatus jds) { IData data = new NaccsData { JobData = this.JP.GetData(jds) }; NormalConfig jobConfig = (NormalConfig) base.JobConfig; if (base.JobConfig.jobStyle == JobStyle.normal) { data.Header.JobCode = jobConfig.record.jobcode; data.Header.DispCode = jobConfig.record.dispcode; } if (jds == Naccs.Common.Generator.ItemInfo.JobDataStatus.jdNone) { data.Header.OutCode = base.ExNaccsData.Header.OutCode; } data.Header.System = jobConfig.system.ToString(); data.Header.InputInfo = base.txtInputInfo.Text; data.Header.IndexInfo = base.ExNaccsData.Header.IndexInfo; if (jds == Naccs.Common.Generator.ItemInfo.JobDataStatus.jdSend) { for (int i = 0; i < this.AuCtrlList.Count; i++) { Naccs.Common.CustomControls.IAutoComplete complete = (Naccs.Common.CustomControls.IAutoComplete) this.AuCtrlList[i]; string str = complete.Text.Trim(); if (!string.IsNullOrEmpty(str) && !complete.AutoCompleteCustomSource.Contains(str)) { complete.AutoCompleteCustomSource.Add(str); } } } this.SaveHistoryFile(this.stHistoryFile); return data; }