private void InitializeComponent() { Naccs.Common.Generator.ItemInfo info = new Naccs.Common.Generator.ItemInfo(); ComponentResourceManager manager = new ComponentResourceManager(typeof(JobForm)); this.JP = new Naccs.Core.Job.JobPanel(); base.gbInputInfo.SuspendLayout(); base.stPnlUser.BeginInit(); base.stPnlSendGuard.BeginInit(); base.gbGuide.SuspendLayout(); base.pnlGuiLayout.SuspendLayout(); base.gbAttach.SuspendLayout(); base.SuspendLayout(); base.pnlGuiLayout.Controls.Add(this.JP); base.ResImageList.ImageStream = (ImageListStreamer) manager.GetObject("ResImageList.ImageStream"); base.ResImageList.Images.SetKeyName(0, "Completion.ico"); base.ResImageList.Images.SetKeyName(1, "Error.ico"); base.ResImageList.Images.SetKeyName(2, "Warning.ico"); this.JP.AutoScroll = true; this.JP.Dock = DockStyle.Fill; this.JP.Font = new Font("Courier New", 9f, FontStyle.Regular, GraphicsUnit.Point, 0); this.JP.Items = info; this.JP.JobErrs = null; this.JP.Location = new Point(0, 0); this.JP.Name = "JP"; this.JP.Size = new Size(0x2c5, 0x291); this.JP.TabIndex = 0; base.AutoScaleDimensions = new SizeF(6f, 12f); base.AutoScaleMode = AutoScaleMode.Font; base.ClientSize = new Size(0x3f8, 0x2de); base.Name = "JobForm"; this.Text = "JobForm"; base.gbInputInfo.ResumeLayout(false); base.gbInputInfo.PerformLayout(); base.stPnlUser.EndInit(); base.stPnlSendGuard.EndInit(); base.gbGuide.ResumeLayout(false); base.pnlGuiLayout.ResumeLayout(false); base.gbAttach.ResumeLayout(false); base.ResumeLayout(false); base.PerformLayout(); }
public IData CreateRequestData() { string mTermLogicalName = st.fTerminalID; string mTermAccessKey = st.fTerminalAccessKey; string mUser = st.fUserIDVNACCS; string mPass = st.fPasswordVNACCS; int mSendCount = 0; string str = this.jobCode; mTermLogicalName = mTermLogicalName.PadRight(6, ' '); mTermAccessKey = mTermAccessKey.PadRight(0x10, ' '); IData data = new NaccsData { Header = { Control = DataControl.GetControl(), JobCode = str, UserId = mUser, Password = mPass, Path = mTermLogicalName, DataInfo = string.Format("{0}{1}{2:D6}", str.PadRight(5, ' '), this.DateTimeString(), mSendCount) } }; bool mLogon = false;//mLogon để chỉ ra rằng header này dùng để logon chứ ko phải là header của của nghiệp vụ khác if (mLogon) { data.Header.SendGuard = "*"; } Naccs.Core.Job.JobPanel JP = new Naccs.Core.Job.JobPanel(); JP.CreatePanel(this.strDisplayFile); //JP.Items.DsItems.Tables[0].Rows[0][ICN.ID] = ICN.Text; //JP.Items.DsItems.Tables[0].Rows[0][HAB.ID] = HAB.Text; //JP.Items.DsItems.Tables[0].Rows[0][BLN.ID] = BLN.Text; //JP.Items.DsItems.Tables[0].Rows[0][IVU.ID] = IVU.Text; foreach (Control c in this.CONTENT.Controls) { if (c is TextBoxX) { TextBoxX txt = c as TextBoxX; JP.Items.DsItems.Tables[0].Rows[0][txt.Name] = txt.Text; } } string strJobData = JP.GetData(Naccs.Common.Generator.ItemInfo.JobDataStatus.jdSend); data.JobData = strJobData; return data; }