示例#1
0
        private void Initialize()
        {
            #region [declare new]

            components      = new Container();
            splitTimer      = new Timer(components);
            split_container = new SplitContainer();
            fpanel          = new XShadowPanel();
            finner_panel    = new Panel();
            btn_list        = new OfficeButton();
            btn_new         = new OfficeButton();
            btn_edit        = new OfficeButton();
            btn_delete      = new OfficeButton();
            btn_print       = new OfficeButton();
            btn_splitter    = new OfficeButton();
            lbl_header      = new Header();
            btn_close       = new CloseButton();

            txt_taxtype_id   = new LookupBox();
            lbl_taxtype_id   = new XLabel();
            lbl_salestype_id = new XLabel();
            txt_salestype_id = new LookupBox();
            txt_invoice_no   = new XTextBox();
            lbl_invoice_no   = new XLabel();
            txt_invoice_date = new xDatepicker();
            lbl_invoice_date = new XLabel();
            txt_party_id     = new LookupBox();
            lbl_party_id     = new XLabel();
            txt_Delivered_id = new LookupBox();
            lbl_Delivered_id = new XLabel();
            editgrid         = new EditGridView();
            txt_transport_id = new LookupBox();
            lbl_transport_id = new XLabel();
            txt_vehicle_no   = new XTextBox();
            lbl_vehicle_no   = new XLabel();
            txt_total_qty    = new XTextBox();
            lbl_total_qty    = new XLabel();
            txt_gsttotal     = new XTextBox();
            lbl_gsttotal     = new XLabel();
            txt_ledger_id    = new LookupBox();
            lbl_ledger_id    = new XLabel();
            txt_additional   = new XTextBox();
            lbl_additional   = new XLabel();
            txt_grandtotal   = new XTextBox();
            lbl_grandtotal   = new XLabel();

            txt_notes  = new RichTextBox();
            lbl_notes  = new XLabel();
            btn_save   = new OfficeButton();
            btn_active = new OfficeButton();

            print_panel       = new ShadowBox();
            btn_print_close   = new CloseButton();
            lbl_print_header  = new Label();
            check_original    = new MCheckBox();
            check_duplicate   = new MCheckBox();
            check_triplicate  = new MCheckBox();
            check_fourplicate = new MCheckBox();

            #endregion [declare new]

            #region [container suspend]

            ((ISupportInitialize)(split_container)).BeginInit();
            ((ISupportInitialize)(editgrid)).BeginInit();
            split_container.Panel1.SuspendLayout();
            split_container.Panel2.SuspendLayout();
            split_container.SuspendLayout();
            fpanel.SuspendLayout();
            finner_panel.SuspendLayout();
            SuspendLayout();

            #endregion [container suspend]

            #region [splitTimer]

            splitTimer.Interval = 2;
            splitTimer.Tick    += new EventHandler(SplitTimer_Tick);

            #endregion [splitTimer]

            #region [split_container]

            split_container.Dock             = DockStyle.Fill;
            split_container.Location         = new Point(0, 0);
            split_container.Name             = "split_container";
            split_container.BackColor        = XTheme.Splitcontainer_colour;
            split_container.Size             = XSize.FSplitcontainer;
            split_container.SplitterDistance = XSize.Screen_Width;
            split_container.TabIndex         = XTab.Splitcontainer;

            // split_container.Panel1

            split_container.Panel1.Controls.Add(fpanel);

            #region [split_container.Panel2]

            split_container.Panel2.Controls.Add(btn_print);
            split_container.Panel2.Controls.Add(btn_delete);
            split_container.Panel2.Controls.Add(btn_edit);
            split_container.Panel2.Controls.Add(btn_new);
            split_container.Panel2.Controls.Add(btn_list);
            split_container.Panel2.Controls.Add(btn_splitter);

            btn_list.Font     = XFont.BtnFont;
            btn_list.Location = XLayout.FormFirstBtn;
            btn_list.Size     = XSize.BtnOne;
            btn_list.TabIndex = 1;
            btn_list.Name     = "btn_list";
            btn_list.Text     = "&List";
            btn_list.Themes   = XTheme.BlueBtn;
            btn_list.Click   += Btn_list_Click;

            btn_new.Font     = XFont.BtnFont;
            btn_new.Location = XLayout.BtnLocation(btn_list.Location);
            btn_new.Size     = XSize.BtnOne;
            btn_new.TabIndex = XTab.Index(btn_list.TabIndex);
            btn_new.Name     = "btn_new";
            btn_new.Text     = "&New";
            btn_new.Themes   = XTheme.BlueBtn;
            btn_new.Click   += Btn_new_Click;

            btn_edit.Font     = XFont.BtnFont;
            btn_edit.Location = XLayout.BtnLocation(btn_new.Location);
            btn_edit.Size     = XSize.BtnOne;
            btn_edit.TabIndex = XTab.Index(btn_new.TabIndex);
            btn_edit.Name     = "btn_edit";
            btn_edit.Text     = "&Edit";
            btn_edit.Themes   = XTheme.BlueBtn;
            btn_edit.Click   += Btn_edit_Click;

            btn_delete.Font     = XFont.BtnFont;
            btn_delete.Location = XLayout.BtnLocation(btn_edit.Location);
            btn_delete.Size     = XSize.BtnOne;
            btn_delete.TabIndex = XTab.Index(btn_edit.TabIndex);
            btn_delete.Name     = "btn_delete";
            btn_delete.Text     = "&Delete";
            btn_delete.Themes   = XTheme.BlueBtn;
            btn_delete.Click   += Btn_delete_Click;

            btn_print.Font     = XFont.BtnFont;
            btn_print.Location = XLayout.BtnLocation(btn_delete.Location);
            btn_print.Size     = XSize.BtnOne;
            btn_print.TabIndex = XTab.Index(btn_delete.TabIndex);
            btn_print.Name     = "btn_print";
            btn_print.Text     = "&Print";
            btn_print.Themes   = XTheme.BlueBtn;
            btn_print.Click   += Btn_print_Click;

            btn_splitter.Font     = XFont.BtnFont;
            btn_splitter.Location = XLayout.Splitter;
            btn_splitter.Size     = XSize.Splitter;
            btn_splitter.TabIndex = XTab.Index(btn_print.TabIndex);
            btn_splitter.Name     = "btn_splitter";
            btn_splitter.Text     = "⁞⁞";
            btn_splitter.Themes   = XTheme.WhiteBtn;
            btn_splitter.Click   += new EventHandler(Btn_splitter_Click);

            #endregion [split_container.Panel2]

            #endregion [split_container]

            #region [fpanel]

            fpanel.Name      = "fpanel";
            fpanel.Anchor    = XAnchor.LTR;
            fpanel.Size      = XSize.FPanel;
            fpanel.Location  = XLayout.FPanel;
            fpanel.BackColor = XTheme.FPanel;
            fpanel.Controls.Add(finner_panel);
            fpanel.Controls.Add(btn_close);
            fpanel.Controls.Add(lbl_header);

            #endregion [fpanel]

            #region [finner_panel]

            finner_panel.Anchor     = XAnchor.LTR;
            finner_panel.Cursor     = Cursors.Default;
            finner_panel.Name       = "finner_panel";
            finner_panel.Size       = XSize.FInnerPanel;
            finner_panel.Location   = XLayout.FInnerPanel;
            finner_panel.BackColor  = XTheme.FInnerpanel;
            finner_panel.AutoScroll = true;

            #region [adding controls]

            finner_panel.Controls.Add(print_panel);
            finner_panel.Controls.Add(txt_notes);
            finner_panel.Controls.Add(lbl_notes);
            finner_panel.Controls.Add(lbl_salestype_id);
            finner_panel.Controls.Add(txt_salestype_id);
            finner_panel.Controls.Add(txt_taxtype_id);
            finner_panel.Controls.Add(lbl_taxtype_id);
            finner_panel.Controls.Add(txt_invoice_no);
            finner_panel.Controls.Add(lbl_invoice_no);
            finner_panel.Controls.Add(txt_invoice_date);
            finner_panel.Controls.Add(lbl_invoice_date);
            finner_panel.Controls.Add(txt_party_id);
            finner_panel.Controls.Add(lbl_party_id);
            finner_panel.Controls.Add(txt_Delivered_id);
            finner_panel.Controls.Add(lbl_Delivered_id);
            finner_panel.Controls.Add(txt_transport_id);
            finner_panel.Controls.Add(lbl_transport_id);
            finner_panel.Controls.Add(txt_vehicle_no);
            finner_panel.Controls.Add(lbl_vehicle_no);
            finner_panel.Controls.Add(txt_total_qty);
            finner_panel.Controls.Add(lbl_total_qty);
            finner_panel.Controls.Add(txt_gsttotal);
            finner_panel.Controls.Add(lbl_gsttotal);
            finner_panel.Controls.Add(txt_ledger_id);
            finner_panel.Controls.Add(lbl_ledger_id);
            finner_panel.Controls.Add(txt_additional);
            finner_panel.Controls.Add(lbl_additional);
            finner_panel.Controls.Add(txt_grandtotal);
            finner_panel.Controls.Add(lbl_grandtotal);
            finner_panel.Controls.Add(editgrid);
            finner_panel.Controls.Add(btn_save);
            finner_panel.Controls.Add(btn_active);


            #endregion [adding controls]

            #region [Header]

            btn_close.Click += new EventHandler(Btn_close_Click);

            lbl_header.Text = "Invoice";

            #endregion [Header]

            #region [Properties of control]

            lbl_invoice_no.Font      = XFont.Font_10B;
            lbl_invoice_no.Name      = "lbl_invoice_no";
            lbl_invoice_no.Text      = " Invoice no";
            lbl_invoice_no.Anchor    = XAnchor.LT;
            lbl_invoice_no.TextAlign = ContentAlignment.MiddleLeft;
            lbl_invoice_no.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_invoice_no.Size      = XSize.OneLabel;
            lbl_invoice_no.Location  = XLayout.FirstLabel;

            txt_invoice_no.Font              = XFont.TxtFont;
            txt_invoice_no.ForeColor         = XFontColor.TxtFontColor;
            txt_invoice_no.BackColor         = XTheme.TxtBackcolor;
            txt_invoice_no.Name              = "txt_invoice_no";
            txt_invoice_no.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_invoice_no.TextAlign         = HorizontalAlignment.Left;
            txt_invoice_no.Size              = XSize.ThreeText;
            txt_invoice_no.Anchor            = XAnchor.LT;
            txt_invoice_no.Location          = XLayout.FirstText;
            txt_invoice_no.TabIndex          = XTab.Txt_TabIndex;
            txt_invoice_no.Enter            += new EventHandler(Txt_invoice_no_Enter);

            lbl_taxtype_id.Font      = XFont.Font_10B;
            lbl_taxtype_id.Name      = "lbl_upvc_salesmode_id";
            lbl_taxtype_id.Text      = "Tax Type";
            lbl_taxtype_id.Anchor    = XAnchor.LT;
            lbl_taxtype_id.TextAlign = ContentAlignment.MiddleLeft;
            lbl_taxtype_id.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_taxtype_id.Size      = XSize.ThreeLabel;
            lbl_taxtype_id.Location  = XLayout.R1_3Label_3(lbl_invoice_no.Location);

            txt_taxtype_id.Font              = XFont.TxtFont;
            txt_taxtype_id.ForeColor         = XFontColor.TxtFontColor;
            txt_taxtype_id.BackColor         = XTheme.TxtBackcolor;
            txt_taxtype_id.Name              = "txt_upvc_salesmode_id";
            txt_taxtype_id.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_taxtype_id.TextAlign         = HorizontalAlignment.Left;
            txt_taxtype_id.Size              = XSize.ThreeText;
            txt_taxtype_id.Anchor            = XAnchor.LT;
            txt_taxtype_id.Location          = XLayout.R1_3Text_3(txt_invoice_no.Location);
            txt_taxtype_id.TabIndex          = XTab.Txt_TabIndex;
            txt_taxtype_id.Enter            += new EventHandler(Txt_taxtype_id_Enter);

            lbl_invoice_date.Font      = XFont.Font_10B;
            lbl_invoice_date.Name      = "lbl_upvc_invoice_date";
            lbl_invoice_date.Text      = " Date";
            lbl_invoice_date.Anchor    = XAnchor.LT;
            lbl_invoice_date.TextAlign = ContentAlignment.MiddleLeft;
            lbl_invoice_date.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_invoice_date.Size      = XSize.OneLabel;
            lbl_invoice_date.Location  = XLayout.R2_3Label_1(lbl_invoice_no.Location);

            txt_invoice_date.Font         = XFont.TxtFont;
            txt_invoice_date.ForeColor    = XFontColor.TxtFontColor;
            txt_invoice_date.BackColor    = XTheme.TxtBackcolor;
            txt_invoice_date.Name         = "txt_upvc_invoice_date";
            txt_invoice_date.CustomFormat = "dd-MM-yyyy";
            txt_invoice_date.Format       = DateTimePickerFormat.Custom;
            txt_invoice_date.Size         = XSize.ThreeText;
            txt_invoice_date.Anchor       = XAnchor.LTR;
            txt_invoice_date.Location     = XLayout.R2_3Text_1(txt_invoice_no.Location);
            txt_invoice_date.TabIndex     = XTab.Index(txt_invoice_no.TabIndex);
            txt_invoice_date.Enter       += new EventHandler(Txt_invoice_date_Enter);

            lbl_salestype_id.Font      = XFont.Font_10B;
            lbl_salestype_id.Name      = "lbl_salestype_id";
            lbl_salestype_id.Text      = " Sales Type";
            lbl_salestype_id.Anchor    = XAnchor.LT;
            lbl_salestype_id.TextAlign = ContentAlignment.MiddleLeft;
            lbl_salestype_id.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_salestype_id.Size      = XSize.ThreeLabel;
            lbl_salestype_id.Location  = XLayout.R1_3Label_3(lbl_invoice_date.Location);

            txt_salestype_id.Font              = XFont.TxtFont;
            txt_salestype_id.ForeColor         = XFontColor.TxtFontColor;
            txt_salestype_id.BackColor         = XTheme.TxtBackcolor;
            txt_salestype_id.Name              = "txt_salestype_id";
            txt_salestype_id.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_salestype_id.TextAlign         = HorizontalAlignment.Left;
            txt_salestype_id.Size              = XSize.ThreeText;
            txt_salestype_id.Anchor            = XAnchor.LT;
            txt_salestype_id.Location          = XLayout.R1_3Text_3(txt_invoice_date.Location);
            txt_salestype_id.TabIndex          = XTab.Index(btn_save.TabIndex);
            txt_salestype_id.Enter            += new EventHandler(Txt_salestype_id_Enter);

            lbl_party_id.Font      = XFont.Font_10B;
            lbl_party_id.Name      = "lbl_party_id";
            lbl_party_id.Text      = "   Party";
            lbl_party_id.Anchor    = XAnchor.LT;
            lbl_party_id.TextAlign = ContentAlignment.MiddleLeft;
            lbl_party_id.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_party_id.Size      = XSize.OneLabel;
            lbl_party_id.Location  = XLayout.R2_2Label_1(lbl_invoice_date.Location);

            txt_party_id.Font              = XFont.TxtFont;
            txt_party_id.ForeColor         = XFontColor.TxtFontColor;
            txt_party_id.BackColor         = XTheme.TxtBackcolor;
            txt_party_id.Name              = "txt_party_id";
            txt_party_id.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_party_id.TextAlign         = HorizontalAlignment.Left;
            txt_party_id.Size              = XSize.TwoText;
            txt_party_id.Anchor            = XAnchor.LT;
            txt_party_id.Location          = XLayout.R2_2Text_1(txt_invoice_date.Location);
            txt_party_id.TabIndex          = XTab.Index(txt_invoice_date.TabIndex);
            txt_party_id.Enter            += new EventHandler(Txt_party_id_Enter);

            lbl_Delivered_id.Font      = XFont.Font_10B;
            lbl_Delivered_id.Name      = "lbl_shipping_id";
            lbl_Delivered_id.Text      = "Shipping To";
            lbl_Delivered_id.Anchor    = XAnchor.LT;
            lbl_Delivered_id.TextAlign = ContentAlignment.MiddleLeft;
            lbl_Delivered_id.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_Delivered_id.Size      = XSize.TwoLabel;
            lbl_Delivered_id.Location  = XLayout.R1_2Label_2(lbl_party_id.Location);

            txt_Delivered_id.Font              = XFont.TxtFont;
            txt_Delivered_id.ForeColor         = XFontColor.TxtFontColor;
            txt_Delivered_id.BackColor         = XTheme.TxtBackcolor;
            txt_Delivered_id.Name              = "txt_shipping_id";
            txt_Delivered_id.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_Delivered_id.TextAlign         = HorizontalAlignment.Left;
            txt_Delivered_id.Size              = XSize.TwoText;
            txt_Delivered_id.Anchor            = XAnchor.LTR;
            txt_Delivered_id.Location          = XLayout.R1_2Text_2(txt_party_id.Location);
            txt_Delivered_id.TabIndex          = XTab.Index(txt_party_id.TabIndex);
            txt_Delivered_id.Enter            += new EventHandler(Txt_shipping_id_Enter);

            editgrid.Location  = new Point(XLayout.H_left, lbl_Delivered_id.Bottom + 10);
            editgrid.Name      = "editgrid";
            editgrid.Size      = new Size(finner_panel.Width - 50, 250);
            editgrid.TabIndex  = XTab.Index(txt_Delivered_id.TabIndex);
            editgrid.RowsLimit = 17;
            Point p = new Point(editgrid.Left, editgrid.Bottom);

            lbl_transport_id.Font      = XFont.Font_10B;
            lbl_transport_id.Name      = "lbl_transport_mode_id";
            lbl_transport_id.Text      = "Transport mode";
            lbl_transport_id.Anchor    = XAnchor.LT;
            lbl_transport_id.TextAlign = ContentAlignment.MiddleLeft;
            lbl_transport_id.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_transport_id.Size      = XSize.OneLabel;
            lbl_transport_id.Location  = XLayout.R2_3Label_1(p);

            txt_transport_id.Font              = XFont.TxtFont;
            txt_transport_id.ForeColor         = XFontColor.TxtFontColor;
            txt_transport_id.BackColor         = XTheme.TxtBackcolor;
            txt_transport_id.Name              = "txt_transport_mode_id";
            txt_transport_id.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_transport_id.TextAlign         = HorizontalAlignment.Left;
            txt_transport_id.Size              = XSize.ThreeText;
            txt_transport_id.Anchor            = XAnchor.LTR;
            txt_transport_id.Location          = XLayout.R2_3Text_1(p);
            txt_transport_id.TabIndex          = XTab.Index(editgrid.TabIndex);
            txt_transport_id.Enter            += new EventHandler(Txt_transport_mode_id_Enter);

            lbl_vehicle_no.Font      = XFont.Font_10B;
            lbl_vehicle_no.Name      = "lbl_vehicle_no";
            lbl_vehicle_no.Text      = "Vehicle no";
            lbl_vehicle_no.Anchor    = XAnchor.LT;
            lbl_vehicle_no.TextAlign = ContentAlignment.MiddleLeft;
            lbl_vehicle_no.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_vehicle_no.Size      = XSize.OneLabel;
            lbl_vehicle_no.Location  = XLayout.R2_3Label_1(lbl_transport_id.Location);

            txt_vehicle_no.Font              = XFont.TxtFont;
            txt_vehicle_no.ForeColor         = XFontColor.TxtFontColor;
            txt_vehicle_no.BackColor         = XTheme.TxtBackcolor;
            txt_vehicle_no.Name              = "txt_vehicle_no";
            txt_vehicle_no.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_vehicle_no.TextAlign         = HorizontalAlignment.Left;
            txt_vehicle_no.Size              = XSize.ThreeText;
            txt_vehicle_no.Anchor            = XAnchor.LTR;
            txt_vehicle_no.Location          = XLayout.R2_3Text_1(txt_transport_id.Location);
            txt_vehicle_no.TabIndex          = XTab.Index(txt_transport_id.TabIndex);
            txt_vehicle_no.Enter            += new EventHandler(Txt_vehicle_no_Enter);

            lbl_total_qty.Font      = XFont.Font_10B;
            lbl_total_qty.Name      = "lbl_total_qty";
            lbl_total_qty.Text      = "Total qty";
            lbl_total_qty.Anchor    = XAnchor.LT;
            lbl_total_qty.TextAlign = ContentAlignment.MiddleLeft;
            lbl_total_qty.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_total_qty.Size      = XSize.FourLabel;
            lbl_total_qty.Location  = XLayout.R2_4Label_3(p);

            txt_total_qty.Font              = XFont.TxtFont;
            txt_total_qty.ForeColor         = XFontColor.TxtFontColor;
            txt_total_qty.BackColor         = XTheme.TxtBackcolor;
            txt_total_qty.Name              = "txt_total_qty";
            txt_total_qty.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_total_qty.ReadOnly          = true;
            txt_total_qty.Cursor            = Cursors.No;
            txt_total_qty.TextAlign         = HorizontalAlignment.Left;
            txt_total_qty.Size              = XSize.FourText;
            txt_total_qty.Anchor            = XAnchor.LTR;
            txt_total_qty.Location          = XLayout.R2_4Text_3(p);
            txt_total_qty.Enter            += new EventHandler(Txt_total_qty_Enter);

            lbl_gsttotal.Font      = XFont.Font_10B;
            lbl_gsttotal.Name      = "lbl_gsttotal";
            lbl_gsttotal.Text      = "GST Total";
            lbl_gsttotal.Anchor    = XAnchor.LT;
            lbl_gsttotal.TextAlign = ContentAlignment.MiddleLeft;
            lbl_gsttotal.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_gsttotal.Size      = XSize.FourLabel;
            lbl_gsttotal.Location  = XLayout.R2_4Label_4(p);

            txt_gsttotal.Font              = XFont.TxtFont;
            txt_gsttotal.ForeColor         = XFontColor.TxtFontColor;
            txt_gsttotal.BackColor         = XTheme.TxtBackcolor;
            txt_gsttotal.Name              = "txt_gsttotal";
            txt_gsttotal.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_gsttotal.ReadOnly          = true;
            txt_gsttotal.Cursor            = Cursors.No;
            txt_gsttotal.TextAlign         = HorizontalAlignment.Right;
            txt_gsttotal.Size              = XSize.FourText;
            txt_gsttotal.Anchor            = XAnchor.LTR;
            txt_gsttotal.Location          = XLayout.R2_4Text_4(p);
            txt_gsttotal.Enter            += new EventHandler(Txt_gsttotal_Enter);

            lbl_ledger_id.Font      = XFont.Font_10B;
            lbl_ledger_id.Name      = "lbl_ledger_id";
            lbl_ledger_id.Text      = "Ledger";
            lbl_ledger_id.Anchor    = XAnchor.LT;
            lbl_ledger_id.TextAlign = ContentAlignment.MiddleLeft;
            lbl_ledger_id.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_ledger_id.Size      = XSize.FourLabel;
            lbl_ledger_id.Location  = XLayout.R2_4Label_3(lbl_gsttotal.Location);

            txt_ledger_id.Font              = XFont.TxtFont;
            txt_ledger_id.ForeColor         = XFontColor.TxtFontColor;
            txt_ledger_id.BackColor         = XTheme.TxtBackcolor;
            txt_ledger_id.Name              = "txt_ledger_id";
            txt_ledger_id.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_ledger_id.Size              = XSize.FourText;
            txt_ledger_id.Anchor            = XAnchor.LTR;
            txt_ledger_id.Location          = XLayout.R2_4Text_3(txt_gsttotal.Location);
            txt_ledger_id.TabIndex          = XTab.Index(txt_vehicle_no.TabIndex);
            txt_ledger_id.Enter            += new EventHandler(Txt_ledger_id_Enter);

            lbl_additional.Font      = XFont.Font_10B;
            lbl_additional.Name      = "lbl_additional";
            lbl_additional.Text      = "Additional";
            lbl_additional.Anchor    = XAnchor.LT;
            lbl_additional.TextAlign = ContentAlignment.MiddleLeft;
            lbl_additional.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_additional.Size      = XSize.FourLabel;
            lbl_additional.Location  = XLayout.R2_4Label_4(lbl_total_qty.Location);

            txt_additional.Font              = XFont.TxtFont;
            txt_additional.ForeColor         = XFontColor.TxtFontColor;
            txt_additional.BackColor         = XTheme.TxtBackcolor;
            txt_additional.Name              = "txt_additional";
            txt_additional.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_additional.TextAlign         = HorizontalAlignment.Right;
            txt_additional.Size              = XSize.FourText;
            txt_additional.Anchor            = XAnchor.LTR;
            txt_additional.Location          = XLayout.R2_4Text_4(txt_total_qty.Location);
            txt_additional.TabIndex          = XTab.Index(txt_ledger_id.TabIndex);
            txt_additional.Enter            += new EventHandler(Txt_additional_Enter);
            txt_additional.TextChanged      += Txt_additional_TextChanged;

            lbl_grandtotal.Font      = XFont.Font_10B;
            lbl_grandtotal.Name      = "lbl_grandtotal";
            lbl_grandtotal.Text      = "Grand Total";
            lbl_grandtotal.Anchor    = XAnchor.LT;
            lbl_grandtotal.TextAlign = ContentAlignment.MiddleLeft;
            lbl_grandtotal.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_grandtotal.Size      = XSize.FourLabel;
            lbl_grandtotal.Location  = XLayout.R2_4Label_4(lbl_additional.Location);

            txt_grandtotal.Font              = XFont.TxtFont;
            txt_grandtotal.ForeColor         = XFontColor.TxtFontColor;
            txt_grandtotal.BackColor         = XTheme.TxtBackcolor;
            txt_grandtotal.Name              = "txt_grandtotal";
            txt_grandtotal.ReadOnlyBackColor = XTheme.TxtReadonlyBackcolor;
            txt_grandtotal.ReadOnly          = true;
            txt_grandtotal.Cursor            = Cursors.No;
            txt_grandtotal.TextAlign         = HorizontalAlignment.Right;
            txt_grandtotal.Size              = XSize.FourText;
            txt_grandtotal.Anchor            = XAnchor.LTR;
            txt_grandtotal.Location          = XLayout.R2_4Text_4(txt_additional.Location);
            txt_grandtotal.Enter            += new EventHandler(Txt_grandtotal_Enter);


            lbl_notes.Font      = XFont.Font_10B;
            lbl_notes.ForeColor = XFontColor.Lbl_ForeColor;
            lbl_notes.Location  = XLayout.LblNotes;
            lbl_notes.Size      = XSize.LblNotes;
            lbl_notes.Anchor    = XAnchor.LB;
            lbl_notes.Name      = "lbl_notes";
            lbl_notes.Text      = "   Notes";
            lbl_notes.TextAlign = ContentAlignment.MiddleLeft;
            lbl_notes.Click    += new EventHandler(Lbl_notes_Click);

            txt_notes.Font      = Theme.txtFont;
            txt_notes.ForeColor = Theme.txtForeColor;
            txt_notes.BackColor = Theme.White;
            txt_notes.Location  = XLayout.TxtNotes;
            txt_notes.Size      = XSize.TxtNotes;
            txt_notes.Name      = "txt_notes";
            txt_notes.Anchor    = XAnchor.LRB;
            txt_notes.TabIndex  = XTab.Index(txt_notes.TabIndex);
            txt_notes.Enter    += new EventHandler(Txt_notes_Enter);

            #endregion [Properties of control]

            #region [Properties of btn]

            btn_save.Anchor   = XAnchor.RB;
            btn_save.Font     = XFont.BtnFont;
            btn_save.Size     = XSize.BtnOne;
            btn_save.Location = XLayout.BtnSave;
            btn_save.TabIndex = XTab.Index(txt_additional.TabIndex);
            btn_save.Name     = "btn_save";
            btn_save.Text     = "&SAVE";
            btn_save.Themes   = XTheme.BlueBtn;
            btn_save.Click   += new EventHandler(Btn_save_click);

            btn_active.Anchor   = XAnchor.RB;
            btn_active.Font     = XFont.BtnFont;
            btn_active.Size     = XSize.BtnOne;
            btn_active.Location = XLayout.BtnActive;
            btn_active.TabIndex = XTab.Index(btn_save.TabIndex);
            btn_active.Name     = "btn_active";
            btn_active.Text     = "&Active";
            btn_active.Click   += new EventHandler(Btn_active_Click);

            txt_notes.TabIndex = btn_active.TabIndex + 1;

            #endregion [Properties of btn]

            #region [Print Panel]

            print_panel.BorderStyle = BorderStyle.None;
            print_panel.Controls.Add(this.btn_print_close);
            print_panel.Controls.Add(this.lbl_print_header);
            print_panel.Controls.Add(this.check_original);
            print_panel.Controls.Add(this.check_duplicate);
            print_panel.Controls.Add(this.check_triplicate);
            print_panel.Location = new Point(750, 360);
            print_panel.Name     = "print_panel";
            print_panel.Size     = new Size(357, 200);
            print_panel.TabIndex = 35;

            btn_print_close.Name     = "btn_print_close";
            btn_print_close.Location = new Point(320, 3);
            btn_print_close.Click   += new EventHandler(Btn_close_Click);

            lbl_print_header.Anchor    = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            lbl_print_header.BackColor = Theme.F_header_Backcolor;
            lbl_print_header.Cursor    = Cursors.Default;
            lbl_print_header.Font      = Theme.F_header_Font;
            lbl_print_header.ForeColor = Theme.F_headerText_Fontcolor;
            lbl_print_header.Location  = new Point(6, 0);
            lbl_print_header.Name      = "lbl_print_header";
            lbl_print_header.Size      = new Size(345, 35);
            lbl_print_header.Text      = "Print Option";
            lbl_print_header.TextAlign = ContentAlignment.MiddleCenter;

            check_original.Anchor   = (AnchorStyles.Top | AnchorStyles.Left);
            check_original.AutoSize = true;
            check_original.Location = new Point(35, 50);
            check_original.Name     = "check_original";
            check_original.Size     = new Size(125, 17);
            check_original.TabIndex = 1;
            check_original.Text     = "Original Copy";
            check_original.UseVisualStyleBackColor = true;
            check_original.Checked = true;

            check_duplicate.Anchor   = (AnchorStyles.Top | AnchorStyles.Left);
            check_duplicate.AutoSize = true;
            check_duplicate.Location = new Point(check_original.Left, check_original.Top + 35);
            check_duplicate.Name     = "check_duplicate";
            check_duplicate.Size     = new Size(125, 17);
            check_duplicate.TabIndex = 1;
            check_duplicate.Text     = "Duplicate Copy";
            check_duplicate.UseVisualStyleBackColor = true;
            check_duplicate.Checked = true;

            check_triplicate.Anchor   = (AnchorStyles.Top | AnchorStyles.Left);
            check_triplicate.AutoSize = true;
            check_triplicate.Location = new Point(check_duplicate.Left, check_duplicate.Top + 35);
            check_triplicate.Name     = "check_triplicate";
            check_triplicate.Size     = new Size(125, 17);
            check_triplicate.TabIndex = 1;
            check_triplicate.Text     = "Office Copy";
            check_triplicate.UseVisualStyleBackColor = true;
            check_triplicate.Checked = true;

            #endregion [Print Panel]

            #endregion [finner_panel]

            #region [FUpvc_invoice]

            this.AutoScaleDimensions = new SizeF(6F, 13F);
            this.AutoScaleMode       = AutoScaleMode.Font;
            this.Controls.Add(this.split_container);
            this.Name = "fUpvc_invoice";
            this.Size = new Size(Screen.PrimaryScreen.Bounds.Width, ClientSize.Height);

            this.split_container.Panel1.ResumeLayout(false);
            this.split_container.Panel2.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(editgrid)).EndInit();
            ((ISupportInitialize)(this.split_container)).EndInit();
            this.split_container.ResumeLayout(false);
            this.fpanel.ResumeLayout(false);
            this.finner_panel.ResumeLayout(false);
            this.finner_panel.PerformLayout();
            this.ResumeLayout(false);

            #endregion [Fpost]
        }