private void initComponentRptDrugDaily() { int gapLine = 25, gapX = 20, gapY = 20, xCol2 = 130, xCol1 = 80, xCol3 = 330, xCol4 = 640, xCol5 = 950; Size size = new Size(); //gapY += gapLine; scRptReportCriteria.Controls.Clear(); lbtxtRptDateStart = new Label(); txtRptDateStart = new C1DateEdit(); lbtxtRptDateEnd = new Label(); txtRptDateEnd = new C1DateEdit(); btnOk = new C1Button(); ic.setControlLabel(ref lbtxtRptDateStart, fEdit, "วันที่เริ่มต้น :", "lbtxtRptDateStart", gapX, gapY); size = ic.MeasureString(lbtxtRptDateStart); ic.setControlC1DateTimeEdit(ref txtRptDateStart, "txtRptDateStart", xCol2, gapY); txtRptDateStart.Value = DateTime.Now; gapY += gapLine; ic.setControlLabel(ref lbtxtRptDateEnd, fEdit, "วันที่สิ้นสุด :", "lbtxtRptDateEnd", gapX, gapY); size = ic.MeasureString(lbtxtRptDateEnd); ic.setControlC1DateTimeEdit(ref txtRptDateEnd, "txtRptDateEnd", xCol2, gapY); txtRptDateEnd.Value = DateTime.Now; gapY += gapLine; ic.setControlC1Button(ref btnOk, fEdit, "OK", "btnOk", xCol1 - 40, gapY); ic.setControlC1Button(ref btnExcel, fEdit, "Excel", "btnExcel", xCol2, gapY); btnOk.Click += BtnOk_Click; btnExcel.Click += BtnExcel_Click; scRptReportCriteria.Controls.Add(lbtxtRptDateStart); scRptReportCriteria.Controls.Add(txtRptDateStart); scRptReportCriteria.Controls.Add(lbtxtRptDateEnd); scRptReportCriteria.Controls.Add(txtRptDateEnd); scRptReportCriteria.Controls.Add(btnOk); scRptReportCriteria.Controls.Add(btnExcel); }
/// <summary> /// 日付範囲指定を設定 /// </summary> /// <param name="lo"></param> /// <param name="vo"></param> /// <param name="wo"></param> /// <param name="itemY"></param> /// <param name="r"></param> /// <returns></returns> protected int SetCtlTypeDateRange(int lo, int vo, int wo, int itemY, DataRow r) { //ラベル SetLabel(lo, itemY, _labelSize, BorderStyle.FixedSingle, r[CommonConsts.db_name].ToString() + "Label", r[CommonConsts.col_name].ToString()); //自 C1DateEdit de1 = new C1DateEdit(); this.MainPanel.Controls.Add(de1); de1.Location = new Point(vo, itemY); de1.Name = r[CommonConsts.db_name].ToString() + "_1"; de1.Size = _ctlSize; SetCommonProperty(de1, _mlu.GetMsg(CommonConsts.DATE_FORMAT_Y_SEC)); SetLabel(wo, itemY, _waveSize, BorderStyle.None, r[CommonConsts.db_name].ToString() + "RLabel", "~"); itemY += RowHeight; //至 C1DateEdit de2 = new C1DateEdit(); this.MainPanel.Controls.Add(de2); de2.Location = new Point(vo, itemY); de2.Name = r[CommonConsts.db_name].ToString() + "_2"; de2.Size = _ctlSize; SetCommonProperty(de2, _mlu.GetMsg(CommonConsts.DATE_FORMAT_Y_SEC)); //値設定 de1.Value = GetDateFromSaveValue(r[CommonConsts.value1].ToString()); de2.Value = GetDateFromSaveValue(r[CommonConsts.value2].ToString()); return(itemY); }
/// <summary> /// 日付(自至)コントロール設定 /// </summary> /// <param name="lo"></param> /// <param name="vo"></param> /// <param name="wo"></param> /// <param name="itemY"></param> /// <param name="r"></param> /// <returns></returns> /// <summary> /// 共通プロパティ設定 /// </summary> /// <param name="de"></param> /// <param name="format"></param> private void SetCommonProperty(C1DateEdit de, string format) { de.EmptyAsNull = true; de.ShowFocusRectangle = true; de.CustomFormat = format; de.FormatType = FormatTypeEnum.CustomFormat; de.ImeMode = ImeMode.Disable; }
private void setControlComponent() { //new LogWriter("d", "FrmDoctorView setControlComponent 00 "); int gapLine = 10, gapX = 20; Size size = new Size(); int scrW = Screen.PrimaryScreen.Bounds.Width; lbDtrName = new Label(); lbDtrName.Text = "..."; lbDtrName.Font = fEditBig; lbDtrName.Location = new System.Drawing.Point(gapX, 5); lbDtrName.AutoSize = true; lbDtrName.Name = "lbDtrName"; lbTxtPttHn = new Label(); lbTxtPttHn.Text = "HN :"; lbTxtPttHn.Font = fEditBig; size = bc.MeasureString(lbTxtPttHn); lbTxtPttHn.Location = new System.Drawing.Point(((scrW / 2) - size.Width) - 60, lbDtrName.Location.Y); lbTxtPttHn.AutoSize = true; lbTxtPttHn.Name = "lbTxtPttHn"; //lbDtrName.SuspendLayout(); //lbTxtPttHn.SuspendLayout(); txtPttHn = new C1TextBox(); txtPttHn.Font = fEditBig; txtPttHn.Location = new System.Drawing.Point(lbTxtPttHn.Location.X + size.Width + 5, lbTxtPttHn.Location.Y); txtPttHn.Size = new Size(120, 20); btnHnSearch = new C1Button(); btnHnSearch.Name = "btnHnSearch"; btnHnSearch.Text = "..."; btnHnSearch.Font = fEdit; //size = bc.MeasureString(btnHnSearch); btnHnSearch.Location = new System.Drawing.Point(txtPttHn.Location.X + txtPttHn.Width + 5, lbTxtPttHn.Location.Y); btnHnSearch.Size = new Size(30, lbTxtPttHn.Height); btnHnSearch.Font = fEdit; //lbPttName = new Label(); //lbPttName.Text = "..."; //lbPttName.Font = fEditBig; //lbPttName.Location = new System.Drawing.Point(btnHnSearch.Location.X + btnHnSearch.Width + 10, lbTxtPttHn.Location.Y); //lbPttName.AutoSize = true; //lbPttName.Name = "lbPttName"; txtDate = new C1DateEdit(); txtDate.AllowSpinLoop = false; txtDate.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; txtDate.Calendar.Font = new System.Drawing.Font("Tahoma", 8F); txtDate.Calendar.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue; txtDate.Calendar.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue; txtDate.CurrentTimeZone = false; txtDate.DisplayFormat.CustomFormat = "dd/MM/yyyy"; txtDate.DisplayFormat.FormatType = FormatTypeEnum.CustomFormat; txtDate.FormatType = C1.Win.C1Input.FormatTypeEnum.CustomFormat; txtDate.DisplayFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(((((C1.Win.C1Input.FormatInfoInheritFlags.NullText | C1.Win.C1Input.FormatInfoInheritFlags.EmptyAsNull) | C1.Win.C1Input.FormatInfoInheritFlags.TrimStart) | C1.Win.C1Input.FormatInfoInheritFlags.TrimEnd) | C1.Win.C1Input.FormatInfoInheritFlags.CalendarType))); txtDate.EditFormat.CustomFormat = "dd/MM/yyyy"; txtDate.EditFormat.FormatType = C1.Win.C1Input.FormatTypeEnum.CustomFormat; txtDate.EditFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(((((C1.Win.C1Input.FormatInfoInheritFlags.NullText | C1.Win.C1Input.FormatInfoInheritFlags.EmptyAsNull) | C1.Win.C1Input.FormatInfoInheritFlags.TrimStart) | C1.Win.C1Input.FormatInfoInheritFlags.TrimEnd) | C1.Win.C1Input.FormatInfoInheritFlags.CalendarType))); txtDate.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); txtDate.GMTOffset = System.TimeSpan.Parse("00:00:00"); txtDate.ImagePadding = new System.Windows.Forms.Padding(0); //size = bc.MeasureString(lbtxtDateStart); txtDate.Location = new System.Drawing.Point(scrW - txtDate.Width + 5, lbTxtPttHn.Location.Y); txtDate.Name = "txtDateStart"; txtDate.Size = new System.Drawing.Size(111, 20); txtDate.TabIndex = 12; txtDate.Tag = null; //theme1.SetTheme(this.txtDate, "(default)"); txtDate.VisualStyle = C1.Win.C1Input.VisualStyle.Office2007Blue; txtDate.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2007Blue; lbTxtDate = new Label(); lbTxtDate.Text = "Date :"; lbTxtDate.Font = fEdit; size = bc.MeasureString(lbTxtDate); lbTxtDate.Location = new System.Drawing.Point(txtDate.Location.X - size.Width - 5, lbTxtPttHn.Location.Y); lbTxtDate.AutoSize = true; lbTxtDate.Name = "lbTxtPttHn"; //new LogWriter("d", "FrmDoctorView setControlComponent End "); }
private void InitComponent() { int gapLine = 30, gapX = 20, gapY = 20; Size size = new Size(); int scrW = Screen.PrimaryScreen.Bounds.Width; fEdit = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Regular); fEditB = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Bold); imgStart = Resources.accept_database24; theme1 = new C1ThemeController(); theme1.Theme = ic.theme; panel1 = new Panel(); panel1.SuspendLayout(); panel1.Dock = System.Windows.Forms.DockStyle.Fill; panel1.Name = "panel1"; txtID = new C1TextBox(); txtID.Font = fEdit; //txtID.Location = new System.Drawing.Point(cboPkg.Location.X, lbName.Location.Y); txtID.Size = new Size(120, 20); txtID.Name = "txtID"; txtID.Hide(); lbDate = new Label(); lbDate.Text = "Date : "; lbDate.Font = fEdit; lbDate.Location = new System.Drawing.Point(gapX, gapY); lbDate.AutoSize = true; lbDate.Name = "lbDate"; txtDate = new C1.Win.C1Input.C1DateEdit(); txtDate.Font = fEdit; txtDate.AllowSpinLoop = false; txtDate.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; txtDate.Calendar.ArrowColor = System.Drawing.Color.Black; txtDate.Calendar.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240))))); txtDate.Calendar.DayNamesFont = new System.Drawing.Font("Tahoma", 8F); txtDate.Calendar.Font = new System.Drawing.Font("Tahoma", 8F); txtDate.Calendar.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(45))))); txtDate.Calendar.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(221)))), ((int)(((byte)(71)))), ((int)(((byte)(47))))); txtDate.Calendar.SelectionForeColor = System.Drawing.Color.White; txtDate.Calendar.TitleBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(230)))), ((int)(((byte)(230))))); txtDate.Calendar.TitleFont = new System.Drawing.Font("Tahoma", 8F); txtDate.Calendar.TitleForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(45))))); txtDate.Calendar.TodayBorderColor = System.Drawing.Color.White; txtDate.Calendar.TrailingForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(152)))), ((int)(((byte)(152)))), ((int)(((byte)(152))))); txtDate.Calendar.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2010Blue; txtDate.Culture = 1054; txtDate.CurrentTimeZone = false; txtDate.DisabledForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(152)))), ((int)(((byte)(152)))), ((int)(((byte)(152))))); txtDate.DisplayFormat.CalendarType = C1.Win.C1Input.CalendarType.GregorianCalendar; txtDate.DisplayFormat.FormatType = C1.Win.C1Input.FormatTypeEnum.ShortDate; txtDate.DisplayFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(((((C1.Win.C1Input.FormatInfoInheritFlags.CustomFormat | C1.Win.C1Input.FormatInfoInheritFlags.NullText) | C1.Win.C1Input.FormatInfoInheritFlags.EmptyAsNull) | C1.Win.C1Input.FormatInfoInheritFlags.TrimStart) | C1.Win.C1Input.FormatInfoInheritFlags.TrimEnd))); txtDate.EditFormat.CalendarType = C1.Win.C1Input.CalendarType.GregorianCalendar; txtDate.EditFormat.FormatType = C1.Win.C1Input.FormatTypeEnum.ShortDate; txtDate.EditFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(((((C1.Win.C1Input.FormatInfoInheritFlags.CustomFormat | C1.Win.C1Input.FormatInfoInheritFlags.NullText) | C1.Win.C1Input.FormatInfoInheritFlags.EmptyAsNull) | C1.Win.C1Input.FormatInfoInheritFlags.TrimStart) | C1.Win.C1Input.FormatInfoInheritFlags.TrimEnd))); txtDate.EmptyAsNull = true; txtDate.GMTOffset = System.TimeSpan.Parse("00:00:00"); txtDate.ImagePadding = new System.Windows.Forms.Padding(0); size = ic.MeasureString(lbDate); txtDate.Location = new System.Drawing.Point(lbDate.Location.X + size.Width + 10, lbDate.Location.Y); txtDate.Name = "txtDate"; txtDate.Size = new System.Drawing.Size(133, 18); txtDate.TabIndex = 510; txtDate.Tag = null; theme1.SetTheme(this.txtDate, "(default)"); txtDate.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2010Blue; gapY += gapLine; lbPkg = new Label(); lbPkg.Font = fEdit; lbPkg.Name = "lbPkg"; lbPkg.Text = "Package : "; lbPkg.Font = fEdit; lbPkg.Location = new System.Drawing.Point(gapX, gapY); lbPkg.AutoSize = true; cboPkg = new C1ComboBox(); cboPkg.Font = fEdit; cboPkg.Name = "cboPkg"; size = ic.MeasureString(lbPkg); cboPkg.Location = new System.Drawing.Point(lbPkg.Location.X + lbPkg.Width + 20, lbPkg.Location.Y); cboPkg.AllowSpinLoop = false; cboPkg.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; cboPkg.DisabledForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(152)))), ((int)(((byte)(152)))), ((int)(((byte)(152))))); cboPkg.Font = fEdit; cboPkg.GapHeight = 0; cboPkg.ImagePadding = new System.Windows.Forms.Padding(0); cboPkg.ItemsDisplayMember = ""; cboPkg.ItemsValueMember = ""; //cboPkg.Location = new System.Drawing.Point(106, 12); cboPkg.Size = new System.Drawing.Size(480, 20); cboPkg.Style.DropDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240))))); cboPkg.Style.DropDownBorderColor = System.Drawing.Color.Gainsboro; cboPkg.Style.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(222))); cboPkg.TabIndex = 538; cboPkg.Tag = null; theme1.SetTheme(cboPkg, "(default)"); cboPkg.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2010Blue; gapY += gapLine; lbName = new Label(); lbName.Font = fEdit; lbName.Text = "Name : "; lbName.Location = new System.Drawing.Point(gapX, gapY); lbName.AutoSize = true; lbName.Name = "lbName"; txtName = new C1TextBox(); txtName.Font = fEdit; txtName.Name = "txtName"; size = ic.MeasureString(lbName); txtName.Location = new System.Drawing.Point(cboPkg.Location.X, lbName.Location.Y); txtName.Size = new Size(120, 20); gapY += gapLine; chkEmbryoFreezing = new C1.Win.C1Input.C1CheckBox(); chkEmbryoFreezing.Font = fEdit; chkEmbryoFreezing.Text = "Embryo freezing "; chkEmbryoFreezing.Name = "chkEmbryoFreezing"; chkEmbryoFreezing.BackColor = System.Drawing.Color.Transparent; chkEmbryoFreezing.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(170))))); chkEmbryoFreezing.BorderStyle = System.Windows.Forms.BorderStyle.None; chkEmbryoFreezing.FlatStyle = System.Windows.Forms.FlatStyle.Flat; chkEmbryoFreezing.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(45))))); chkEmbryoFreezing.Location = new System.Drawing.Point(gapX, gapY); chkEmbryoFreezing.Padding = new System.Windows.Forms.Padding(4, 1, 1, 1); chkEmbryoFreezing.Size = new System.Drawing.Size(180, 24); chkEmbryoFreezing.TabIndex = 553; theme1.SetTheme(this.chkEmbryoFreezing, "(default)"); chkEmbryoFreezing.UseVisualStyleBackColor = true; chkEmbryoFreezing.Value = null; chkEmbryoFreezing.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2010Blue; chkEmbryoFreezing.AutoSize = true; txtEmbryoFreezing = new C1TextBox(); txtEmbryoFreezing.Font = fEdit; size = ic.MeasureString(chkEmbryoFreezing); txtEmbryoFreezing.Location = new System.Drawing.Point(chkEmbryoFreezing.Location.X + size.Width + 25, chkEmbryoFreezing.Location.Y); txtEmbryoFreezing.Size = new Size(40, 20); txtEmbryoFreezing.Name = "txtEmbryoFreezing"; lbEmbryoFreezing = new Label(); lbEmbryoFreezing.Font = fEdit; lbEmbryoFreezing.Text = "embryos "; lbEmbryoFreezing.Name = "lbEmbryoFreezing"; lbEmbryoFreezing.Location = new System.Drawing.Point(txtEmbryoFreezing.Location.X + txtEmbryoFreezing.Width + 5, chkEmbryoFreezing.Location.Y); lbEmbryoFreezing.AutoSize = true; txtEmbryoStraws = new C1TextBox(); txtEmbryoStraws.Font = fEdit; size = ic.MeasureString(lbEmbryoFreezing); txtEmbryoStraws.Location = new System.Drawing.Point(lbEmbryoFreezing.Location.X + size.Width + 15, chkEmbryoFreezing.Location.Y); txtEmbryoStraws.Size = new Size(40, 20); txtEmbryoStraws.Name = "txtEmbryoStraws"; lbEmbryoStraws = new Label(); lbEmbryoStraws.Font = fEdit; lbEmbryoStraws.Text = "straws (Extra "; lbEmbryoStraws.Name = "lbEmbryoStraws"; lbEmbryoStraws.Location = new System.Drawing.Point(txtEmbryoStraws.Location.X + txtEmbryoStraws.Width + 5, chkEmbryoFreezing.Location.Y); lbEmbryoStraws.AutoSize = true; txtEmbryoStrawsExtra = new C1TextBox(); txtEmbryoStrawsExtra.Font = fEdit; size = ic.MeasureString(lbEmbryoStraws); txtEmbryoStrawsExtra.Location = new System.Drawing.Point(lbEmbryoStraws.Location.X + size.Width + 5, chkEmbryoFreezing.Location.Y); txtEmbryoStrawsExtra.Size = new Size(40, 20); lbEmbryoEmbryo = new Label(); lbEmbryoEmbryo.Font = fEdit; lbEmbryoEmbryo.Text = "embryos) "; lbEmbryoEmbryo.Name = "lbEmbryoEmbryo"; lbEmbryoEmbryo.Location = new System.Drawing.Point(txtEmbryoStrawsExtra.Location.X + txtEmbryoStrawsExtra.Width + 5, chkEmbryoFreezing.Location.Y); lbEmbryoEmbryo.AutoSize = true; gapY += gapLine; chkNGS = new C1.Win.C1Input.C1CheckBox(); chkNGS.Font = fEdit; chkNGS.Text = "NGS "; chkNGS.Name = "chkNGS"; chkNGS.BackColor = System.Drawing.Color.Transparent; chkNGS.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(170))))); chkNGS.BorderStyle = System.Windows.Forms.BorderStyle.None; chkNGS.FlatStyle = System.Windows.Forms.FlatStyle.Flat; chkNGS.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(45))))); chkNGS.Location = new System.Drawing.Point(gapX, gapY); chkNGS.Padding = new System.Windows.Forms.Padding(4, 1, 1, 1); chkNGS.Size = new System.Drawing.Size(180, 24); chkNGS.TabIndex = 553; theme1.SetTheme(this.chkNGS, "(default)"); chkNGS.UseVisualStyleBackColor = true; chkNGS.Value = null; chkNGS.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2010Blue; txtNGSEmbryo = new C1TextBox(); txtNGSEmbryo.Font = fEdit; size = ic.MeasureString(chkNGS); txtNGSEmbryo.Location = new System.Drawing.Point(chkNGS.Location.X + chkNGS.Width, chkNGS.Location.Y); txtNGSEmbryo.Size = new Size(60, 20); txtNGSEmbryo.Name = "txtNGSEmbryo"; lbNGSEmbryo = new Label(); lbNGSEmbryo.Font = fEdit; lbNGSEmbryo.Text = "embryo (Extra "; lbNGSEmbryo.Name = "lbNGSEmbryo"; lbNGSEmbryo.Location = new System.Drawing.Point(txtNGSEmbryo.Location.X + txtNGSEmbryo.Width, chkNGS.Location.Y); lbNGSEmbryo.AutoSize = true; txtNGSExtra = new C1TextBox(); txtNGSExtra.Font = fEdit; size = ic.MeasureString(lbNGSEmbryo); txtNGSExtra.Location = new System.Drawing.Point(lbNGSEmbryo.Location.X + lbNGSEmbryo.Width, chkNGS.Location.Y); txtNGSExtra.Size = new Size(60, 20); txtNGSExtra.Name = "txtNGSExtra"; lbNGSExtra = new Label(); lbNGSExtra.Text = "embryos) "; lbNGSExtra.Font = fEdit; lbNGSExtra.Location = new System.Drawing.Point(txtNGSExtra.Location.X + txtNGSExtra.Width, chkNGS.Location.Y); lbNGSExtra.AutoSize = true; lbNGSExtra.Name = "lbNGSExtra"; gapY += gapLine; chkPGS = new C1.Win.C1Input.C1CheckBox(); chkPGS.BackColor = System.Drawing.Color.Transparent; chkPGS.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(170))))); chkPGS.BorderStyle = System.Windows.Forms.BorderStyle.None; chkPGS.FlatStyle = System.Windows.Forms.FlatStyle.Flat; chkPGS.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(45))))); chkPGS.Location = new System.Drawing.Point(gapX, gapY); chkPGS.Name = "chkPGS"; chkPGS.Text = "PGS "; size = ic.MeasureString(chkPGS); chkPGS.Padding = new System.Windows.Forms.Padding(4, 1, 1, 1); chkPGS.Size = new System.Drawing.Size(size.Width + 30, 24); chkPGS.TabIndex = 553; theme1.SetTheme(this.chkPGS, "(default)"); chkPGS.UseVisualStyleBackColor = true; chkPGS.Value = null; chkPGS.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2010Blue; chkPGS.Font = fEdit; txtPGSEmbryo = new C1TextBox(); txtPGSEmbryo.Font = fEdit; txtPGSEmbryo.Location = new System.Drawing.Point(chkPGS.Location.X + size.Width + 35, chkPGS.Location.Y); txtPGSEmbryo.Size = new Size(60, 20); txtPGSEmbryo.Name = "txtPGSEmbryo"; lbPGSEmbryo = new Label(); lbPGSEmbryo.Font = fEdit; lbPGSEmbryo.Name = "lbPGSEmbryo"; lbPGSEmbryo.Text = "embryo (Extra "; lbPGSEmbryo.Location = new System.Drawing.Point(txtPGSEmbryo.Location.X + txtPGSEmbryo.Width, chkPGS.Location.Y); lbPGSEmbryo.AutoSize = true; txtPGSExtra = new C1TextBox(); txtPGSExtra.Font = fEdit; size = ic.MeasureString(lbPGSEmbryo); txtPGSExtra.Location = new System.Drawing.Point(lbPGSEmbryo.Location.X + size.Width, chkPGS.Location.Y); txtPGSExtra.Size = new Size(60, 20); txtPGSExtra.Name = "txtPGSExtra"; lbPGSExtra = new Label(); lbPGSExtra.Font = fEdit; lbPGSExtra.Text = "embryos) "; lbPGSExtra.Name = "lbPGSExtra"; lbPGSExtra.Location = new System.Drawing.Point(txtPGSExtra.Location.X + txtPGSExtra.Width, chkPGS.Location.Y); lbPGSExtra.AutoSize = true; gapY += gapLine; chkDay6 = new C1.Win.C1Input.C1CheckBox(); chkDay6.Font = fEdit; chkDay6.Name = "chkPGS"; chkDay6.Text = "Day 6 "; chkDay6.BackColor = System.Drawing.Color.Transparent; chkDay6.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(170))))); chkDay6.BorderStyle = System.Windows.Forms.BorderStyle.None; chkDay6.FlatStyle = System.Windows.Forms.FlatStyle.Flat; chkDay6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(45))))); chkDay6.Location = new System.Drawing.Point(gapX, gapY); chkDay6.Padding = new System.Windows.Forms.Padding(4, 1, 1, 1); chkDay6.Size = new System.Drawing.Size(180, 24); chkDay6.TabIndex = 553; theme1.SetTheme(this.chkDay6, "(default)"); chkDay6.UseVisualStyleBackColor = true; chkDay6.Value = null; chkDay6.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2010Blue; gapY += gapLine; chkAssistedHatching = new C1.Win.C1Input.C1CheckBox(); chkAssistedHatching.BackColor = System.Drawing.Color.Transparent; chkAssistedHatching.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(170))))); chkAssistedHatching.BorderStyle = System.Windows.Forms.BorderStyle.None; chkAssistedHatching.FlatStyle = System.Windows.Forms.FlatStyle.Flat; chkAssistedHatching.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(45))))); chkAssistedHatching.Location = new System.Drawing.Point(gapX, gapY); chkAssistedHatching.Name = "chkAssistedHatching"; chkAssistedHatching.Padding = new System.Windows.Forms.Padding(4, 1, 1, 1); chkAssistedHatching.Size = new System.Drawing.Size(180, 24); chkAssistedHatching.TabIndex = 553; chkAssistedHatching.Text = "Assisted Hatching "; theme1.SetTheme(this.chkAssistedHatching, "(default)"); chkAssistedHatching.UseVisualStyleBackColor = true; chkAssistedHatching.Value = null; chkAssistedHatching.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2010Blue; chkAssistedHatching.Font = fEdit; gapY += gapLine; chkHA = new C1.Win.C1Input.C1CheckBox(); chkHA.BackColor = System.Drawing.Color.Transparent; chkHA.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(170))))); chkHA.BorderStyle = System.Windows.Forms.BorderStyle.None; chkHA.FlatStyle = System.Windows.Forms.FlatStyle.Flat; chkHA.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(45))))); chkHA.Location = new System.Drawing.Point(gapX, gapY); chkHA.Name = "chkHA"; chkHA.Padding = new System.Windows.Forms.Padding(4, 1, 1, 1); chkHA.Size = new System.Drawing.Size(180, 24); chkHA.TabIndex = 553; chkHA.Text = "HA Assist selection "; theme1.SetTheme(this.chkHA, "(default)"); chkHA.UseVisualStyleBackColor = true; chkHA.Value = null; chkHA.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2010Blue; chkHA.Font = fEdit; gapY += gapLine; chkSpermSelection = new C1.Win.C1Input.C1CheckBox(); chkSpermSelection.BackColor = System.Drawing.Color.Transparent; chkSpermSelection.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(170))))); chkSpermSelection.BorderStyle = System.Windows.Forms.BorderStyle.None; chkSpermSelection.FlatStyle = System.Windows.Forms.FlatStyle.Flat; chkSpermSelection.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(45))))); chkSpermSelection.Location = new System.Drawing.Point(gapX, gapY); chkSpermSelection.Name = "chkSpermSelection"; chkSpermSelection.Padding = new System.Windows.Forms.Padding(4, 1, 1, 1); chkSpermSelection.Size = new System.Drawing.Size(180, 24); chkSpermSelection.TabIndex = 553; chkSpermSelection.Text = "Sperm Selection "; theme1.SetTheme(this.chkSpermSelection, "(default)"); chkSpermSelection.UseVisualStyleBackColor = true; chkSpermSelection.Value = null; chkSpermSelection.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2010Blue; chkSpermSelection.Font = fEdit; txtSpermSelection = new C1TextBox(); txtSpermSelection.Font = fEdit; size = ic.MeasureString(chkSpermSelection); txtSpermSelection.Location = new System.Drawing.Point(chkSpermSelection.Location.X + chkSpermSelection.Width, chkSpermSelection.Location.Y); txtSpermSelection.Size = new Size(60, 20); txtSpermSelection.Name = "txtSpermSelection"; gapY += gapLine; chkSpermPrecaution = new C1.Win.C1Input.C1CheckBox(); chkSpermPrecaution.BackColor = System.Drawing.Color.Transparent; chkSpermPrecaution.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(170))))); chkSpermPrecaution.BorderStyle = System.Windows.Forms.BorderStyle.None; chkSpermPrecaution.FlatStyle = System.Windows.Forms.FlatStyle.Flat; chkSpermPrecaution.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(45))))); chkSpermPrecaution.Location = new System.Drawing.Point(gapX, gapY); chkSpermPrecaution.Name = "chkSpermPrecaution"; chkSpermPrecaution.Padding = new System.Windows.Forms.Padding(4, 1, 1, 1); chkSpermPrecaution.Size = new System.Drawing.Size(180, 24); chkSpermPrecaution.TabIndex = 553; chkSpermPrecaution.Text = "Sperm Precaution "; theme1.SetTheme(this.chkSpermPrecaution, "(default)"); chkSpermPrecaution.UseVisualStyleBackColor = true; chkSpermPrecaution.Value = null; chkSpermPrecaution.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2010Blue; chkSpermPrecaution.Font = fEdit; txtSpermPrecaution = new C1TextBox(); txtSpermPrecaution.Font = fEdit; size = ic.MeasureString(chkSpermPrecaution); txtSpermPrecaution.Location = new System.Drawing.Point(chkSpermPrecaution.Location.X + chkSpermPrecaution.Width, chkSpermPrecaution.Location.Y); txtSpermPrecaution.Size = new Size(60, 20); txtSpermPrecaution.Name = "txtSpermPrecaution"; gapY += gapLine; chkEmbryoGlue = new C1.Win.C1Input.C1CheckBox(); chkEmbryoGlue.BackColor = System.Drawing.Color.Transparent; chkEmbryoGlue.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(170))))); chkEmbryoGlue.BorderStyle = System.Windows.Forms.BorderStyle.None; chkEmbryoGlue.FlatStyle = System.Windows.Forms.FlatStyle.Flat; chkEmbryoGlue.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(45))))); chkEmbryoGlue.Location = new System.Drawing.Point(gapX, gapY); chkEmbryoGlue.Name = "chkEmbryoGlue"; chkEmbryoGlue.Padding = new System.Windows.Forms.Padding(4, 1, 1, 1); chkEmbryoGlue.Size = new System.Drawing.Size(180, 24); chkEmbryoGlue.TabIndex = 553; chkEmbryoGlue.Text = "Embryo Glue "; theme1.SetTheme(this.chkEmbryoGlue, "(default)"); chkEmbryoGlue.UseVisualStyleBackColor = true; chkEmbryoGlue.Value = null; chkEmbryoGlue.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2010Blue; chkEmbryoGlue.Font = fEdit; gapY += gapLine; chkEmbryoRemaining = new C1.Win.C1Input.C1CheckBox(); chkEmbryoRemaining.BackColor = System.Drawing.Color.Transparent; chkEmbryoRemaining.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(170))))); chkEmbryoRemaining.BorderStyle = System.Windows.Forms.BorderStyle.None; chkEmbryoRemaining.FlatStyle = System.Windows.Forms.FlatStyle.Flat; chkEmbryoRemaining.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(45))))); chkEmbryoRemaining.Location = new System.Drawing.Point(gapX, gapY); chkEmbryoRemaining.Name = "chkEmbryoRemaining"; chkEmbryoRemaining.Padding = new System.Windows.Forms.Padding(4, 1, 1, 1); chkEmbryoRemaining.Size = new System.Drawing.Size(180, 24); chkEmbryoRemaining.TabIndex = 553; chkEmbryoRemaining.Text = "Embryo Remaining "; theme1.SetTheme(this.chkEmbryoRemaining, "(default)"); chkEmbryoRemaining.UseVisualStyleBackColor = true; chkEmbryoRemaining.Value = null; chkEmbryoRemaining.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2010Blue; chkEmbryoRemaining.Font = fEdit; txtEmbryoRemaining = new C1TextBox(); txtEmbryoRemaining.Font = fEdit; size = ic.MeasureString(chkSpermPrecaution); txtEmbryoRemaining.Location = new System.Drawing.Point(chkEmbryoRemaining.Location.X + chkEmbryoRemaining.Width, chkEmbryoRemaining.Location.Y); txtEmbryoRemaining.Size = new Size(60, 20); txtEmbryoRemaining.Name = "txtEmbryoRemaining"; lbEmbryoRemaining = new Label(); lbEmbryoRemaining.Text = "embryos "; lbEmbryoRemaining.Font = fEdit; lbEmbryoRemaining.Location = new System.Drawing.Point(txtPGSExtra.Location.X + txtPGSExtra.Width, chkPGS.Location.Y); lbEmbryoRemaining.AutoSize = true; lbEmbryoRemaining.Name = "lbEmbryoRemaining"; gapY += gapLine; chkDiscardAll = new C1.Win.C1Input.C1CheckBox(); chkDiscardAll.Font = fEdit; chkDiscardAll.Name = "chkDiscardAll"; chkDiscardAll.Text = "Discard All Embryos "; chkDiscardAll.BackColor = System.Drawing.Color.Transparent; chkDiscardAll.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(170)))), ((int)(((byte)(170)))), ((int)(((byte)(170))))); chkDiscardAll.BorderStyle = System.Windows.Forms.BorderStyle.None; chkDiscardAll.FlatStyle = System.Windows.Forms.FlatStyle.Flat; chkDiscardAll.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(45))))); chkDiscardAll.Location = new System.Drawing.Point(gapX, gapY); chkDiscardAll.Padding = new System.Windows.Forms.Padding(4, 1, 1, 1); chkDiscardAll.Size = new System.Drawing.Size(180, 24); chkDiscardAll.TabIndex = 553; theme1.SetTheme(this.chkDiscardAll, "(default)"); chkDiscardAll.UseVisualStyleBackColor = true; chkDiscardAll.Value = null; chkDiscardAll.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2010Blue; gapY += gapLine; lbStfId = new Label(); lbStfId.Font = fEdit; lbStfId.Name = "lbStfId"; lbStfId.Text = "Staff : "; lbStfId.Location = new System.Drawing.Point(gapX, gapY); lbStfId.AutoSize = true; cboStfId = new C1ComboBox(); cboStfId.Font = fEdit; size = ic.MeasureString(lbStfId); cboStfId.Location = new System.Drawing.Point(cboPkg.Location.X, lbStfId.Location.Y); cboStfId.AllowSpinLoop = false; cboStfId.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; cboStfId.DisabledForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(152)))), ((int)(((byte)(152)))), ((int)(((byte)(152))))); cboStfId.Font = fEdit; cboStfId.GapHeight = 0; cboStfId.ImagePadding = new System.Windows.Forms.Padding(0); cboStfId.ItemsDisplayMember = ""; cboStfId.ItemsValueMember = ""; cboStfId.Name = "cboStfId"; cboStfId.Size = new System.Drawing.Size(180, 20); cboStfId.Style.DropDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240))))); cboStfId.Style.DropDownBorderColor = System.Drawing.Color.Gainsboro; cboStfId.Style.Font = fEdit; cboStfId.TabIndex = 538; cboStfId.Tag = null; theme1.SetTheme(cboStfId, "(default)"); cboStfId.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2010Blue; gapY += gapLine; lbChkId = new Label(); lbChkId.Font = fEdit; lbChkId.Text = "Check By : "; lbChkId.Name = "lbChkId"; lbChkId.Location = new System.Drawing.Point(gapX, gapY); lbChkId.AutoSize = true; cboChkId = new C1ComboBox(); cboChkId.Font = fEdit; cboChkId.Name = "cboChkId"; size = ic.MeasureString(lbChkId); cboChkId.Location = new System.Drawing.Point(cboPkg.Location.X, lbChkId.Location.Y); cboChkId.AllowSpinLoop = false; cboChkId.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; cboChkId.DisabledForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(152)))), ((int)(((byte)(152)))), ((int)(((byte)(152))))); cboChkId.Font = fEdit; cboChkId.GapHeight = 0; cboChkId.ImagePadding = new System.Windows.Forms.Padding(0); cboChkId.ItemsDisplayMember = ""; cboChkId.ItemsValueMember = ""; cboChkId.Size = new System.Drawing.Size(180, 20); cboChkId.Style.DropDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240))))); cboChkId.Style.DropDownBorderColor = System.Drawing.Color.Gainsboro; cboChkId.Style.Font = fEdit; cboChkId.TabIndex = 538; cboChkId.Tag = null; theme1.SetTheme(cboChkId, "(default)"); cboChkId.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2010Blue; gapY += gapLine; btnSave = new C1Button(); btnSave.Font = fEdit; btnSave.Name = "btnLisStart"; btnSave.Text = "Save"; //size = bc.MeasureString(btnHnSearch); btnSave.Location = new System.Drawing.Point(gapX, gapY); btnSave.Size = new Size(70, 60); btnSave.Font = fEdit; btnSave.Image = imgStart; btnSave.TextAlign = ContentAlignment.MiddleRight; btnSave.ImageAlign = ContentAlignment.MiddleLeft; //panel1.Controls.Add(chkNGS); panel1.Controls.Add(lbDate); panel1.Controls.Add(txtDate); panel1.Controls.Add(lbPkg); panel1.Controls.Add(cboPkg); panel1.Controls.Add(lbName); panel1.Controls.Add(txtName); panel1.Controls.Add(chkEmbryoFreezing); panel1.Controls.Add(txtEmbryoFreezing); panel1.Controls.Add(lbEmbryoFreezing); panel1.Controls.Add(txtEmbryoStraws); panel1.Controls.Add(lbEmbryoStraws); panel1.Controls.Add(txtEmbryoStrawsExtra); panel1.Controls.Add(lbEmbryoEmbryo); panel1.Controls.Add(chkNGS); panel1.Controls.Add(chkPGS); //panel1.Controls.Add(lbPGSEmbryo); panel1.Controls.Add(txtPGSEmbryo); panel1.Controls.Add(lbPGSEmbryo); panel1.Controls.Add(txtPGSExtra); panel1.Controls.Add(lbPGSExtra); panel1.Controls.Add(txtSpermSelection); panel1.Controls.Add(txtSpermPrecaution); panel1.Controls.Add(txtEmbryoRemaining); panel1.Controls.Add(lbEmbryoRemaining); panel1.Controls.Add(chkDay6); panel1.Controls.Add(chkHA); panel1.Controls.Add(chkSpermSelection); panel1.Controls.Add(chkSpermPrecaution); panel1.Controls.Add(chkEmbryoGlue); panel1.Controls.Add(chkEmbryoRemaining); panel1.Controls.Add(chkDiscardAll); panel1.Controls.Add(lbStfId); panel1.Controls.Add(cboStfId); panel1.Controls.Add(lbChkId); panel1.Controls.Add(cboChkId); panel1.Controls.Add(btnSave); this.Controls.Add(panel1); setTheme(); panel1.ResumeLayout(false); panel1.PerformLayout(); this.PerformLayout(); }
private void initCompoment() { int gapLine = 25, gapX = 20, gapY = 20, xCol2 = 130, xCol1 = 80, xCol3 = 330, xCol4 = 640, xCol5 = 950; Size size = new Size(); tcMain = new C1DockingTab(); tcMain.Dock = System.Windows.Forms.DockStyle.Fill; tcMain.Location = new System.Drawing.Point(0, 266); tcMain.Name = "tcMain"; tcMain.Size = new System.Drawing.Size(669, 200); tcMain.TabIndex = 0; tcMain.TabsSpacing = 5; tabImportDf = new C1DockingTabPage(); tabImportDf.Dock = System.Windows.Forms.DockStyle.Fill; tabImportDf.Name = "tabImportDf"; tabImportDf.Text = "Import Item DF"; grfSelect = new C1FlexGrid(); grfSelect.Font = fEdit; grfSelect.Dock = System.Windows.Forms.DockStyle.Bottom; grfSelect.Location = new System.Drawing.Point(0, 0); grfSelect.Rows.Count = 1; lbDateStart = new Label(); txtDateStart = new C1DateEdit(); btnDeleteAll = new C1Button(); cboDocGrp = new C1ComboBox(); txtPaidType = new C1TextBox(); lbHn = new Label(); txtHn = new C1TextBox(); btnPrint = new C1Button(); btnGet = new C1Button(); bc.setControlLabel(ref lbDateStart, fEdit, "วันที่เริ่มต้น :", "lbDateStart", gapX, gapY); size = bc.MeasureString(lbDateStart); bc.setControlC1DateTimeEdit(ref txtDateStart, "txtDateStart", lbDateStart.Location.X + size.Width + 5, gapY); bc.setControlC1ComboBox(ref cboDocGrp, "cboDocGrp", 80, txtDateStart.Location.X + txtDateStart.Width + 25, gapY); cboDocGrp.Font = fEdit; ComboBoxItem item = new ComboBoxItem(); item = new ComboBoxItem(); item.Value = "1"; item.Text = "รอบ 1"; cboDocGrp.Items.Add(item); item = new ComboBoxItem(); item.Value = "2"; item.Text = "รอบ 2"; cboDocGrp.Items.Add(item); item = new ComboBoxItem(); item.Value = "3"; item.Text = "รอบ 3"; cboDocGrp.Items.Add(item); //item = new ComboBoxItem(); //item.Value = "3"; //item.Text = "รอบ 3"; //cboDocGrp.Items.Add(item); bc.setControlC1TextBox(ref txtPaidType, fEdit, "txtPaidType", 140, cboDocGrp.Location.X + cboDocGrp.Width + 25, gapY); bc.setControlLabel(ref lbHn, fEdit, "search :", "lbHn", txtPaidType.Location.X + txtPaidType.Width + 55, gapY); size = bc.MeasureString(lbHn); bc.setControlC1TextBox(ref txtHn, fEdit, "txtHn", 140, lbHn.Location.X + lbHn.Width + 10, gapY); bc.setControlC1Button(ref btnDeleteAll, fEdit, "Clear Data", "btnDeleteAll", txtHn.Location.X + txtHn.Width + 20, gapY); btnDeleteAll.Width = 120; btnDeleteAll.Height = btnDeleteAll.Height + 10; bc.setControlC1Button(ref btnPrint, fEdit, "Print", "btnPrint", btnDeleteAll.Location.X + btnDeleteAll.Width + 60, gapY); btnPrint.Width = 140; btnPrint.Height = btnPrint.Height + 10; bc.setControlC1Button(ref btnGet, fEdit, "get", "btnGet", btnPrint.Location.X + btnPrint.Width + 60, gapY); btnGet.Width = 140; btnGet.Height = btnGet.Height + 10; tabImportDf.Controls.Add(grfSelect); theme1.SetTheme(grfSelect, "Office2010Red"); tabImportDf.Controls.Add(lbDateStart); tabImportDf.Controls.Add(txtDateStart); tabImportDf.Controls.Add(cboDocGrp); tabImportDf.Controls.Add(btnDeleteAll); tabImportDf.Controls.Add(btnPrint); tabImportDf.Controls.Add(txtPaidType); tabImportDf.Controls.Add(lbHn); tabImportDf.Controls.Add(txtHn); tabImportDf.Controls.Add(btnGet); tcMain.Controls.Add(tabImportDf); this.Controls.Add(tcMain); }
private void initCompoment() { int gapLine = 25, gapX = 20, gapY = 20, xCol2 = 130, xCol1 = 80, xCol3 = 330, xCol4 = 640, xCol5 = 950; Size size = new Size(); tcMain = new C1DockingTab(); tcMain.Dock = System.Windows.Forms.DockStyle.Fill; tcMain.Location = new System.Drawing.Point(0, 266); tcMain.Name = "tcMain"; tcMain.Size = new System.Drawing.Size(669, 200); tcMain.TabIndex = 0; tcMain.TabsSpacing = 5; tabImportDf = new C1DockingTabPage(); tabImportDf.Dock = System.Windows.Forms.DockStyle.Fill; tabImportDf.Name = "tabImportDf"; tabImportDf.Text = "Import Item DF"; grfSelect = new C1FlexGrid(); grfSelect.Font = fEdit; grfSelect.Dock = System.Windows.Forms.DockStyle.Bottom; grfSelect.Location = new System.Drawing.Point(0, 0); grfSelect.Rows.Count = 1; lbDateStart = new Label(); txtDateStart = new C1DateEdit(); lbDateEnd = new Label(); txtDateEnd = new C1DateEdit(); lbtxtPaidType = new Label(); txtPaidType = new C1TextBox(); btnImportDfSelect = new C1Button(); btnImportDfGen = new C1Button(); lbLoading = new Label(); lbLoading.Font = fEdit5B; lbLoading.BackColor = Color.WhiteSmoke; lbLoading.ForeColor = Color.Black; lbLoading.AutoSize = false; lbLoading.Size = new Size(300, 60); bc.setControlLabel(ref lbDateStart, fEdit, "วันที่เริ่มต้น :", "lbDateStart", gapX, gapY); size = bc.MeasureString(lbDateStart); bc.setControlC1DateTimeEdit(ref txtDateStart, "txtDateStart", lbDateStart.Location.X + size.Width + 5, gapY); size = bc.MeasureString(lbDateStart); //bc.setControlC1DateTimeEdit(ref txtDateStart, "txtDateStart", lbDateStart.Location.X + size.Width + 5, gapY); bc.setControlLabel(ref lbDateEnd, fEdit, "วันที่สิ้นสุด :", "lbDateEnd", txtDateStart.Location.X + txtDateStart.Width + 15, gapY); size = bc.MeasureString(lbDateEnd); bc.setControlC1DateTimeEdit(ref txtDateEnd, "txtDateEnd", lbDateEnd.Location.X + size.Width + 5, gapY); bc.setControlLabel(ref lbtxtPaidType, fEdit, "สิทธิ (xx,...) :", "lbtxtPaidType", txtDateEnd.Location.X + txtDateEnd.Width + 15, gapY); size = bc.MeasureString(lbtxtPaidType); bc.setControlC1TextBox(ref txtPaidType, fEdit, "txtPaidType", 120, lbtxtPaidType.Location.X + size.Width + 5, gapY); bc.setControlC1Button(ref btnImportDfSelect, fEdit, "ดึงข้อมูล", "btnSelect", txtPaidType.Location.X + txtPaidType.Width + 20, gapY); btnImportDfSelect.Width = 70; bc.setControlC1Button(ref btnImportDfGen, fEdit, "gen Text", "btnGen", btnImportDfSelect.Location.X + btnImportDfSelect.Width + 20, gapY); btnImportDfGen.Width = 80; tabImportDf.Controls.Add(grfSelect); theme1.SetTheme(grfSelect, "Office2010Red"); tabImportDf.Controls.Add(lbDateStart); tabImportDf.Controls.Add(txtDateStart); tabImportDf.Controls.Add(lbDateEnd); tabImportDf.Controls.Add(txtDateEnd); tabImportDf.Controls.Add(lbtxtPaidType); tabImportDf.Controls.Add(txtPaidType); tabImportDf.Controls.Add(btnImportDfSelect); tabImportDf.Controls.Add(btnImportDfGen); tcMain.Controls.Add(tabImportDf); this.Controls.Add(lbLoading); this.Controls.Add(tcMain); }
private void initCompomentTabDeposit() { int gapLine = 25, gapX = 20, gapY = 20, xCol2 = 150, xCol1 = 80, xCol3 = 330, xCol4 = 640, xCol5 = 950; Size size = new Size(); tabDeposit = new C1DockingTabPage(); tabDeposit.Location = new System.Drawing.Point(1, 24); //tabScan.Name = "c1DockingTabPage1"; tabDeposit.Size = new System.Drawing.Size(667, 175); tabDeposit.TabIndex = 0; tabDeposit.Text = "Deposit"; tabDeposit.Name = "tabDeposit"; tcMain.Controls.Add(tabDeposit); lbtxtDepositCode = new Label(); lbtxtDepositDate = new Label(); lbtxtHn = new Label(); lbtxtName = new Label(); lbtxtDeposit = new Label(); lbtxtRemark = new Label(); txtDepositDate = new C1DateEdit(); txtDepositCode = new C1TextBox(); txtHn = new C1TextBox(); txtName = new C1TextBox(); txtDeposit = new C1TextBox(); txtRemark = new C1TextBox(); btnSave = new C1Button(); btnSearch = new C1Button(); chkAll = new C1CheckBox(); chkActive = new RadioButton(); chkUnActive = new RadioButton(); txtId = new C1TextBox(); lbcboPackage = new Label(); cboPackage = new C1ComboBox(); btnNew = new C1Button(); ic.setControlLabel(ref lbtxtDepositCode, fEdit, "code :", "lbtxtDepositCode", gapX, gapY); ic.setControlC1TextBox(ref txtDepositCode, fEdit, "txtDepositCode", 120, xCol2, gapY); ic.setControlC1CheckBox(ref chkAll, fEdit, "All", "chkAll", xCol4, gapY); //gapY += gapLine; ic.setControlLabel(ref lbtxtDepositDate, fEdit, "Date Deposit :", "lbtxtDepositDate", xCol3, gapY); size = ic.MeasureString(lbtxtDepositDate); ic.setControlC1DateTimeEdit(ref txtDepositDate, "txtDepositDate", lbtxtDepositDate.Location.X + size.Width + 15, gapY); gapY += gapLine; ic.setControlLabel(ref lbtxtHn, fEdit, "HN :", "lbtxtHn", gapX, gapY); ic.setControlC1TextBox(ref txtHn, fEdit, "txtHn", 120, xCol2, gapY); ic.setControlC1Button(ref btnSearch, fEdit, "...", "btnSearch", txtHn.Location.X + txtHn.Width + 10, gapY - 4); btnSearch.Width = 30; btnSearch.Height = 25; ic.setControlLabel(ref lbtxtDeposit, fEdit, "Deposit :", "lbtxtDeposit", xCol3, gapY); size = ic.MeasureString(lbtxtDeposit); ic.setControlC1TextBox(ref txtDeposit, fEdit, "txtDeposit", 120, txtDepositDate.Location.X, gapY); txtDeposit.NumericInput = true; txtDeposit.DataType = typeof(decimal); ic.setControlRadioBox(ref chkActive, fEdit, "Active", "chkActive", xCol4, gapY); ic.setControlRadioBox(ref chkUnActive, fEdit, "UnActive", "chkUnActive", chkActive.Location.X + 80, gapY); gapY += gapLine; ic.setControlLabel(ref lbtxtName, fEdit, "Name :", "lbtxtName", gapX, gapY); ic.setControlC1TextBox(ref txtName, fEdit, "txtName", 400, xCol2, gapY); //gapY += gapLine; gapY += gapLine; ic.setControlLabel(ref lbtxtRemark, fEdit, "Remark :", "lbtxtRemark", gapX, gapY); ic.setControlC1TextBox(ref txtRemark, fEdit, "txtRemark", 400, xCol2, gapY); //gapY += gapLine; ic.setControlC1Button(ref btnSave, fEdit, "Save", "btnSave", xCol4, gapY); btnSave.Width = 70; ic.setControlC1Button(ref btnNew, fEdit, "New", "btnNew", btnSave.Location.X + btnSave.Width + 30, gapY); btnNew.Width = 70; gapY += gapLine; ic.setControlLabel(ref lbcboPackage, fEdit, "Package :", "lbcboPackage", gapX, gapY); ic.setControlC1ComboBox(ref cboPackage, "cboPackage", 400, xCol2, gapY); grfDeposit = new C1FlexGrid(); grfDeposit.Name = "grfDeposit"; grfDeposit.Font = fEdit; grfDeposit.Dock = System.Windows.Forms.DockStyle.Bottom; grfDeposit.Location = new System.Drawing.Point(0, 0); grfDeposit.Rows.Count = 1; tabDeposit.Controls.Add(grfDeposit); tabDeposit.Controls.Add(lbtxtDepositCode); tabDeposit.Controls.Add(txtDepositCode); tabDeposit.Controls.Add(lbtxtDepositDate); tabDeposit.Controls.Add(txtDepositDate); tabDeposit.Controls.Add(lbtxtHn); tabDeposit.Controls.Add(txtHn); tabDeposit.Controls.Add(lbtxtName); tabDeposit.Controls.Add(txtName); tabDeposit.Controls.Add(lbtxtDeposit); tabDeposit.Controls.Add(txtDeposit); tabDeposit.Controls.Add(lbtxtRemark); tabDeposit.Controls.Add(txtRemark); tabDeposit.Controls.Add(btnSave); tabDeposit.Controls.Add(btnSearch); tabDeposit.Controls.Add(chkAll); tabDeposit.Controls.Add(chkActive); tabDeposit.Controls.Add(chkUnActive); tabDeposit.Controls.Add(lbcboPackage); tabDeposit.Controls.Add(cboPackage); tabDeposit.Controls.Add(btnNew); }
private void initCompomentTabWithDraw() { int gapLine = 25, gapX = 20, gapY = 20, xCol2 = 150, xCol20 = 130, xCol1 = 80, xCol3 = 330, xCol31 = 460, xcol32 = 540, xCol4 = 640, xcol41 = 660, xCol5 = 950; Size size = new Size(); tabWithDraw = new C1DockingTabPage(); tabWithDraw.Location = new System.Drawing.Point(1, 24); //tabScan.Name = "c1DockingTabPage1"; tabWithDraw.Size = new System.Drawing.Size(667, 175); tabWithDraw.TabIndex = 0; tabWithDraw.Text = "WithDraw"; tabWithDraw.Name = "tabWithDraw"; tcMain.Controls.Add(tabWithDraw); lbtxtWithDrawCode = new Label(); lbtxtWithDrawAmount = new Label(); lbtxtWithDrawRemark = new Label(); lbtxtWithDrawDate = new Label(); lbtxtWithDrawHn = new Label(); lbtxtWithDrawAmount = new Label(); lbtxtWithDrawName = new Label(); lbtxtWithDrawAmt = new Label(); lbtxtWithDrawDeposit = new Label(); txtWithDrawCode = new C1TextBox(); txtWithDrawAmount = new C1TextBox(); txtWithDrawDate = new C1DateEdit(); txtWithDrawHn = new C1TextBox(); txtWithDrawId = new C1TextBox(); txtWithDrawVisitId = new C1TextBox(); txtWithDrawRemark = new C1TextBox(); txtWithDrawVisitId = new C1TextBox(); txtWithDrawName = new C1TextBox(); txtWithDrawVn = new C1TextBox(); txtWithDrawVisitId = new C1TextBox(); txtWithDrawPttId = new C1TextBox(); txtWithDrawAmt = new C1TextBox(); txtWithDrawDeposit = new C1TextBox(); btnWithDrawSearch = new C1Button(); btnWithDrawSave = new C1Button(); chkWithDrawActive = new RadioButton(); chkWithDrawUnActive = new RadioButton(); lbcboPackageHn = new Label(); cboPackageHn = new C1ComboBox(); ic.setControlLabel(ref lbtxtWithDrawCode, fEdit, "code :", "lbtxtWithDrawCode", gapX, gapY); ic.setControlC1TextBox(ref txtWithDrawCode, fEdit, "txtWithDrawCode", 120, xCol20, gapY); ic.setControlLabel(ref lbtxtWithDrawDate, fEdit, "Date Withdraw :", "lbtxtWithDrawDate", xcol32, gapY); size = ic.MeasureString(lbtxtWithDrawDate); ic.setControlC1DateTimeEdit(ref txtWithDrawDate, "txtWithDrawDate", lbtxtWithDrawDate.Location.X + size.Width + 15, gapY); ic.setControlC1Button(ref btnWithDrawSave, fEdit, "Save", "btnWithDrawSave", txtWithDrawCode.Location.X + txtWithDrawCode.Width + 20, gapY - 10); btnWithDrawSave.Width = 70; ic.setControlRadioBox(ref chkWithDrawActive, fEdit, "Active", "chkActive", btnWithDrawSave.Location.X + btnWithDrawSave.Width + 20, gapY); ic.setControlRadioBox(ref chkWithDrawUnActive, fEdit, "UnActive", "chkUnActive", chkWithDrawActive.Location.X + 80, gapY); gapY += gapLine; ic.setControlLabel(ref lbtxtWithDrawHn, fEdit, "HN :", "lbtxtWithDrawHn", gapX, gapY); ic.setControlC1TextBox(ref txtWithDrawHn, fEdit, "txtWithDrawHn", 120, xCol20, gapY); ic.setControlC1TextBox(ref txtWithDrawVn, fEdit, "txtWithDrawVn", 120, txtWithDrawHn.Location.X + txtWithDrawHn.Width + 20, gapY); ic.setControlC1Button(ref btnWithDrawSearch, fEdit, "...", "btnWithDrawSearch", txtWithDrawVn.Location.X + txtWithDrawVn.Width + 10, gapY - 4); btnWithDrawSearch.Width = 30; btnWithDrawSearch.Height = 25; ic.setControlLabel(ref lbtxtWithDrawDeposit, fEdit, "Deposit :", "lbtxtWithDrawDeposit", xcol32, gapY); ic.setControlC1TextBox(ref txtWithDrawDeposit, fEdit, "txtWithDrawDeposit", 120, xCol4, gapY); gapY += gapLine; ic.setControlLabel(ref lbtxtWithDrawName, fEdit, "Name :", "lbtxtWithDrawName", gapX, gapY); ic.setControlC1TextBox(ref txtWithDrawName, fEdit, "txtWithDrawName", 400, xCol20, gapY); //gapY += gapLine; ic.setControlLabel(ref lbtxtWithDrawAmt, fEdit, "Amount :", "lbtxtWithDrawAmt", xcol32, gapY); ic.setControlC1TextBox(ref txtWithDrawAmt, fEdit, "txtWithDrawAmt", 120, xCol4, gapY); //ic.setControlRadioBox(ref chkWithDrawActive, fEdit, "Active", "chkActive", xCol4, gapY); //ic.setControlRadioBox(ref chkWithDrawUnActive, fEdit, "UnActive", "chkUnActive", chkActive.Location.X + 80, gapY); gapY += gapLine; ic.setControlLabel(ref lbtxtWithDrawRemark, fEdit, "Remark :", "lbtxtWithDrawRemark", gapX, gapY); ic.setControlC1TextBox(ref txtWithDrawRemark, fEdit, "txtWithDrawRemark", 400, xCol20, gapY); //gapY += gapLine; ic.setControlLabel(ref lbtxtWithDrawAmount, fEdit, "WithDraw :", "lbtxtWithDrawAmount", xcol32, gapY); size = ic.MeasureString(lbtxtWithDrawAmount); ic.setControlC1TextBox(ref txtWithDrawAmount, fEdit, "txtWithDrawAmount", 120, xCol4, gapY); txtWithDrawAmount.NumericInput = true; txtWithDrawAmount.DataType = typeof(decimal); gapY += gapLine; ic.setControlLabel(ref lbcboPackageHn, fEdit, "Package :", "lbcboPackageHn", gapX, gapY); ic.setControlC1ComboBox(ref cboPackageHn, fEdit, "cboPackageHn", 500, xCol2, gapY); grfWithDraw = new C1FlexGrid(); grfWithDraw.Name = "grfWithDraw"; grfWithDraw.Font = fEdit; grfWithDraw.Dock = System.Windows.Forms.DockStyle.Bottom; grfWithDraw.Location = new System.Drawing.Point(0, 0); grfWithDraw.Rows.Count = 1; grfDepositHn = new C1FlexGrid(); grfDepositHn.Name = "grfDepositHn"; grfDepositHn.Font = fEdit; grfDepositHn.Dock = System.Windows.Forms.DockStyle.None; grfDepositHn.Location = new System.Drawing.Point(0, 0); grfDepositHn.Rows.Count = 1; tabWithDraw.Controls.Add(grfWithDraw); tabWithDraw.Controls.Add(btnWithDrawSave); tabWithDraw.Controls.Add(txtWithDrawRemark); tabWithDraw.Controls.Add(lbtxtWithDrawRemark); tabWithDraw.Controls.Add(txtWithDrawName); tabWithDraw.Controls.Add(lbtxtWithDrawName); tabWithDraw.Controls.Add(txtWithDrawAmount); tabWithDraw.Controls.Add(lbtxtWithDrawAmount); tabWithDraw.Controls.Add(btnWithDrawSearch); tabWithDraw.Controls.Add(txtWithDrawVn); tabWithDraw.Controls.Add(txtWithDrawHn); tabWithDraw.Controls.Add(lbtxtWithDrawHn); tabWithDraw.Controls.Add(txtWithDrawDate); tabWithDraw.Controls.Add(lbtxtWithDrawDate); tabWithDraw.Controls.Add(txtWithDrawCode); tabWithDraw.Controls.Add(lbtxtWithDrawCode); tabWithDraw.Controls.Add(chkWithDrawActive); tabWithDraw.Controls.Add(chkWithDrawUnActive); tabWithDraw.Controls.Add(grfDepositHn); tabWithDraw.Controls.Add(lbtxtWithDrawAmt); tabWithDraw.Controls.Add(txtWithDrawAmt); tabWithDraw.Controls.Add(lbtxtWithDrawDeposit); tabWithDraw.Controls.Add(txtWithDrawDeposit); tabWithDraw.Controls.Add(cboPackageHn); tabWithDraw.Controls.Add(lbcboPackageHn); //theme1.SetTheme(cboPackageHn, ic.iniC.themeApp); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SelectWorkOrders)); this.dgrdData = new C1.Win.C1TrueDBGrid.C1TrueDBGrid(); this.chkSelectAll = new System.Windows.Forms.CheckBox(); this.btnClose = new System.Windows.Forms.Button(); this.btnHelp = new System.Windows.Forms.Button(); this.btnSelect = new System.Windows.Forms.Button(); this.dtmToStartDate = new C1.Win.C1Input.C1DateEdit(); this.dtmFromStartDate = new C1.Win.C1Input.C1DateEdit(); this.lblToStartDate = new System.Windows.Forms.Label(); this.btnSearch = new System.Windows.Forms.Button(); this.lblCCN = new System.Windows.Forms.Label(); this.btnSearchBeginWO = new System.Windows.Forms.Button(); this.txtBeginWO = new System.Windows.Forms.TextBox(); this.lblMasLoc = new System.Windows.Forms.Label(); this.lblFromStartDate = new System.Windows.Forms.Label(); this.lblWO = new System.Windows.Forms.Label(); this.lblMasLocValue = new System.Windows.Forms.Label(); this.lblCCNValue = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.dgrdData)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dtmToStartDate)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dtmFromStartDate)).BeginInit(); this.SuspendLayout(); // // dgrdData // this.dgrdData.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.dgrdData.DataView = C1.Win.C1TrueDBGrid.DataViewEnum.GroupBy; this.dgrdData.FilterBar = true; this.dgrdData.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.dgrdData.GroupByAreaVisible = false; this.dgrdData.GroupByCaption = ""; this.dgrdData.Images.Add(((System.Drawing.Image)(resources.GetObject("dgrdData.Images")))); this.dgrdData.Location = new System.Drawing.Point(4, 74); this.dgrdData.MultiSelect = C1.Win.C1TrueDBGrid.MultiSelectEnum.None; this.dgrdData.Name = "dgrdData"; this.dgrdData.PreviewInfo.Location = new System.Drawing.Point(0, 0); this.dgrdData.PreviewInfo.Size = new System.Drawing.Size(0, 0); this.dgrdData.PreviewInfo.ZoomFactor = 75; this.dgrdData.PrintInfo.PageSettings = ((System.Drawing.Printing.PageSettings)(resources.GetObject("dgrdData.PrintInfo.PageSettings"))); this.dgrdData.Size = new System.Drawing.Size(762, 350); this.dgrdData.TabIndex = 9; this.dgrdData.AfterColUpdate += new C1.Win.C1TrueDBGrid.ColEventHandler(this.dgrdData_AfterColUpdate); this.dgrdData.PropBag = resources.GetString("dgrdData.PropBag"); // // chkSelectAll // this.chkSelectAll.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.chkSelectAll.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.chkSelectAll.Location = new System.Drawing.Point(74, 427); this.chkSelectAll.Name = "chkSelectAll"; this.chkSelectAll.Size = new System.Drawing.Size(81, 23); this.chkSelectAll.TabIndex = 11; this.chkSelectAll.Text = "Select &All"; this.chkSelectAll.Click += new System.EventHandler(this.chkSelectAll_Click); // // btnClose // this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnClose.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnClose.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.btnClose.Location = new System.Drawing.Point(704, 427); this.btnClose.Name = "btnClose"; this.btnClose.Size = new System.Drawing.Size(60, 23); this.btnClose.TabIndex = 13; this.btnClose.Text = "&Close"; this.btnClose.Click += new System.EventHandler(this.btnClose_Click); // // btnHelp // this.btnHelp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnHelp.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnHelp.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.btnHelp.Location = new System.Drawing.Point(640, 427); this.btnHelp.Name = "btnHelp"; this.btnHelp.Size = new System.Drawing.Size(64, 23); this.btnHelp.TabIndex = 12; this.btnHelp.Text = "&Help"; // // btnSelect // this.btnSelect.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btnSelect.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnSelect.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.btnSelect.Location = new System.Drawing.Point(4, 427); this.btnSelect.Name = "btnSelect"; this.btnSelect.Size = new System.Drawing.Size(67, 23); this.btnSelect.TabIndex = 10; this.btnSelect.Text = "S&elect"; this.btnSelect.Click += new System.EventHandler(this.btnSelect_Click); // // dtmToStartDate // this.dtmToStartDate.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(177)))), ((int)(((byte)(187)))), ((int)(((byte)(214))))); this.dtmToStartDate.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; // // // this.dtmToStartDate.Calendar.Font = new System.Drawing.Font("Tahoma", 8F); this.dtmToStartDate.Calendar.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.dtmToStartDate.Calendar.VisualStyle = C1.Win.C1Input.VisualStyle.Office2010Blue; this.dtmToStartDate.Calendar.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2010Blue; this.dtmToStartDate.CustomFormat = "dd-MM-yyyy"; this.dtmToStartDate.EmptyAsNull = true; this.dtmToStartDate.FormatType = C1.Win.C1Input.FormatTypeEnum.CustomFormat; this.dtmToStartDate.Location = new System.Drawing.Point(312, 50); this.dtmToStartDate.Name = "dtmToStartDate"; this.dtmToStartDate.Size = new System.Drawing.Size(128, 18); this.dtmToStartDate.TabIndex = 7; this.dtmToStartDate.Tag = null; this.dtmToStartDate.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.dtmToStartDate.VisibleButtons = C1.Win.C1Input.DropDownControlButtonFlags.DropDown; this.dtmToStartDate.VisualStyle = C1.Win.C1Input.VisualStyle.Office2010Blue; this.dtmToStartDate.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2010Blue; this.dtmToStartDate.WrapDateTimeFields = false; // // dtmFromStartDate // this.dtmFromStartDate.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(177)))), ((int)(((byte)(187)))), ((int)(((byte)(214))))); this.dtmFromStartDate.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; // // // this.dtmFromStartDate.Calendar.Font = new System.Drawing.Font("Tahoma", 8F); this.dtmFromStartDate.Calendar.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.dtmFromStartDate.Calendar.VisualStyle = C1.Win.C1Input.VisualStyle.Office2010Blue; this.dtmFromStartDate.Calendar.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2010Blue; this.dtmFromStartDate.CustomFormat = "dd-MM-yyyy "; this.dtmFromStartDate.EmptyAsNull = true; this.dtmFromStartDate.FormatType = C1.Win.C1Input.FormatTypeEnum.CustomFormat; this.dtmFromStartDate.Location = new System.Drawing.Point(106, 50); this.dtmFromStartDate.Name = "dtmFromStartDate"; this.dtmFromStartDate.Size = new System.Drawing.Size(128, 18); this.dtmFromStartDate.TabIndex = 5; this.dtmFromStartDate.Tag = null; this.dtmFromStartDate.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.dtmFromStartDate.VisibleButtons = C1.Win.C1Input.DropDownControlButtonFlags.DropDown; this.dtmFromStartDate.VisualStyle = C1.Win.C1Input.VisualStyle.Office2010Blue; this.dtmFromStartDate.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2010Blue; this.dtmFromStartDate.WrapDateTimeFields = false; // // lblToStartDate // this.lblToStartDate.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.lblToStartDate.Location = new System.Drawing.Point(236, 50); this.lblToStartDate.Name = "lblToStartDate"; this.lblToStartDate.Size = new System.Drawing.Size(74, 20); this.lblToStartDate.TabIndex = 6; this.lblToStartDate.Text = "To Start Date"; this.lblToStartDate.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // btnSearch // this.btnSearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnSearch.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnSearch.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.btnSearch.Location = new System.Drawing.Point(682, 47); this.btnSearch.Name = "btnSearch"; this.btnSearch.Size = new System.Drawing.Size(82, 23); this.btnSearch.TabIndex = 8; this.btnSearch.Text = "&Search"; this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click); // // lblCCN // this.lblCCN.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.lblCCN.ForeColor = System.Drawing.Color.Maroon; this.lblCCN.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.lblCCN.Location = new System.Drawing.Point(662, 6); this.lblCCN.Name = "lblCCN"; this.lblCCN.Size = new System.Drawing.Size(30, 20); this.lblCCN.TabIndex = 17; this.lblCCN.Text = "CCN"; this.lblCCN.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // btnSearchBeginWO // this.btnSearchBeginWO.FlatStyle = System.Windows.Forms.FlatStyle.System; this.btnSearchBeginWO.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.btnSearchBeginWO.Location = new System.Drawing.Point(236, 28); this.btnSearchBeginWO.Name = "btnSearchBeginWO"; this.btnSearchBeginWO.Size = new System.Drawing.Size(24, 20); this.btnSearchBeginWO.TabIndex = 4; this.btnSearchBeginWO.Text = "..."; this.btnSearchBeginWO.Click += new System.EventHandler(this.btnSearchBeginWO_Click); // // txtBeginWO // this.txtBeginWO.Location = new System.Drawing.Point(106, 28); this.txtBeginWO.Name = "txtBeginWO"; this.txtBeginWO.Size = new System.Drawing.Size(128, 20); this.txtBeginWO.TabIndex = 3; this.txtBeginWO.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtBeginWO_KeyDown); this.txtBeginWO.Leave += new System.EventHandler(this.txtBeginWO_Leave); // // lblMasLoc // this.lblMasLoc.ForeColor = System.Drawing.Color.Maroon; this.lblMasLoc.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.lblMasLoc.Location = new System.Drawing.Point(4, 6); this.lblMasLoc.Name = "lblMasLoc"; this.lblMasLoc.Size = new System.Drawing.Size(100, 20); this.lblMasLoc.TabIndex = 14; this.lblMasLoc.Text = "Mas. Location"; this.lblMasLoc.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblFromStartDate // this.lblFromStartDate.ForeColor = System.Drawing.SystemColors.ControlText; this.lblFromStartDate.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.lblFromStartDate.Location = new System.Drawing.Point(4, 50); this.lblFromStartDate.Name = "lblFromStartDate"; this.lblFromStartDate.Size = new System.Drawing.Size(100, 20); this.lblFromStartDate.TabIndex = 16; this.lblFromStartDate.Text = "From Start Date"; this.lblFromStartDate.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblWO // this.lblWO.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.lblWO.Location = new System.Drawing.Point(4, 28); this.lblWO.Name = "lblWO"; this.lblWO.Size = new System.Drawing.Size(100, 20); this.lblWO.TabIndex = 15; this.lblWO.Text = "Work Order"; this.lblWO.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblMasLocValue // this.lblMasLocValue.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.lblMasLocValue.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.lblMasLocValue.Location = new System.Drawing.Point(106, 6); this.lblMasLocValue.Name = "lblMasLocValue"; this.lblMasLocValue.Size = new System.Drawing.Size(128, 20); this.lblMasLocValue.TabIndex = 18; this.lblMasLocValue.Text = "MasLoc"; this.lblMasLocValue.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblCCNValue // this.lblCCNValue.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.lblCCNValue.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.lblCCNValue.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.lblCCNValue.Location = new System.Drawing.Point(694, 6); this.lblCCNValue.Name = "lblCCNValue"; this.lblCCNValue.Size = new System.Drawing.Size(70, 20); this.lblCCNValue.TabIndex = 19; this.lblCCNValue.Text = "CCNValue"; this.lblCCNValue.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // SelectWorkOrders // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.CancelButton = this.btnClose; this.ClientSize = new System.Drawing.Size(768, 453); this.Controls.Add(this.lblCCNValue); this.Controls.Add(this.lblMasLocValue); this.Controls.Add(this.dtmToStartDate); this.Controls.Add(this.dtmFromStartDate); this.Controls.Add(this.txtBeginWO); this.Controls.Add(this.dgrdData); this.Controls.Add(this.lblToStartDate); this.Controls.Add(this.btnSearch); this.Controls.Add(this.lblCCN); this.Controls.Add(this.btnSearchBeginWO); this.Controls.Add(this.lblMasLoc); this.Controls.Add(this.lblFromStartDate); this.Controls.Add(this.lblWO); this.Controls.Add(this.btnClose); this.Controls.Add(this.btnHelp); this.Controls.Add(this.btnSelect); this.Controls.Add(this.chkSelectAll); this.KeyPreview = true; this.Name = "SelectWorkOrders"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Select Component"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Load += new System.EventHandler(this.SelectWorkOrders_Load); ((System.ComponentModel.ISupportInitialize)(this.dgrdData)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dtmToStartDate)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dtmFromStartDate)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }