示例#1
0
        public FrmDetect(Form owner)
        {
            InitializeComponent();
            this.FormClosing    += new FormClosingEventHandler(frmQuality_FormClosing);
            this.FormClosed     += new FormClosedEventHandler(issueForm_FormClosed);
            this.Width           = owner.Width;
            this.Height          = owner.Height;
            this.Top             = owner.Top;
            this.Left            = owner.Left;
            this.FormBorderStyle = owner.FormBorderStyle;
            this.WindowState     = owner.WindowState;
            this.Bounds          = owner.Bounds;
            this.StartPosition   = owner.StartPosition;
            this.FormBorderStyle = owner.FormBorderStyle;
            this.MaximizeBox     = owner.MaximizeBox;
            this.MinimizeBox     = owner.MinimizeBox;
            this.Text            = "质检";
            ctrlNavigation navigation = new ctrlNavigation();

            navigation.Width  = 88;
            navigation.Height = 36;
            navigation.Top    = 0;
            navigation.Left   = 922;
            ctrlBasicInfo basicInfo = new ctrlBasicInfo();

            basicInfo.Width  = 910;
            basicInfo.Height = 36;
            basicInfo.Top    = 0;
            basicInfo.Left   = 0;
            ctrlProductScan scan = new ctrlProductScan();

            scan.Width  = 464;
            scan.Height = 36;
            scan.Top    = 42;
            scan.Left   = 0;


            this.Controls.Add(scan);
            this.Controls.Add(basicInfo);
            this.Controls.Add(navigation);
        }
示例#2
0
        public FrmBarCode(Form owner)
        {
            InitializeComponent();
            this.FormClosing    += new FormClosingEventHandler(issueForm_FormClosing);
            this.FormClosed     += new FormClosedEventHandler(issueForm_FormClosed);
            this.Width           = owner.Width;
            this.Height          = owner.Height;
            this.Top             = owner.Top;
            this.Left            = owner.Left;
            this.FormBorderStyle = owner.FormBorderStyle;
            this.WindowState     = owner.WindowState;
            this.Bounds          = owner.Bounds;
            this.StartPosition   = owner.StartPosition;
            this.FormBorderStyle = owner.FormBorderStyle;
            this.MaximizeBox     = owner.MaximizeBox;
            this.MinimizeBox     = owner.MinimizeBox;
            this.Text            = "条码打印";
            ctrlNavigation navigation = new ctrlNavigation();

            navigation.Width  = 88;
            navigation.Height = 36;
            navigation.Top    = 0;
            navigation.Left   = 922;
            ctrlBasicInfo basicInfo = new ctrlBasicInfo();

            basicInfo.Width  = 910;
            basicInfo.Height = 36;
            basicInfo.Top    = 0;
            basicInfo.Left   = 0;
            ctrlprinting print = new ctrlprinting();

            print.Width  = 1000;
            print.Height = 650;
            print.Top    = 46;
            print.Left   = 6;
            this.Controls.Add(print);
            this.Controls.Add(basicInfo);
            this.Controls.Add(navigation);
        }
示例#3
0
        public frmPrintQual_1(Form owner)
        {
            InitializeComponent();
            this.FormClosed     += new FormClosedEventHandler(frmPrintQual_1_FormClosed);
            this.Width           = owner.Width;
            this.Height          = owner.Height;
            this.Top             = owner.Top;
            this.Left            = owner.Left;
            this.FormBorderStyle = owner.FormBorderStyle;
            this.WindowState     = owner.WindowState;
            this.Bounds          = owner.Bounds;
            this.StartPosition   = owner.StartPosition;
            this.FormBorderStyle = owner.FormBorderStyle;
            this.MaximizeBox     = owner.MaximizeBox;
            this.MinimizeBox     = owner.MinimizeBox;
            this.Text            = "开关柜质检报告打印";
            ctrlNavigation navigation = new ctrlNavigation();

            navigation.Width  = 88;
            navigation.Height = 36;
            navigation.Top    = 0;
            navigation.Left   = 922;
            ctrlBasicInfo basicInfo = new ctrlBasicInfo();

            basicInfo.Width  = 910;
            basicInfo.Height = 36;
            basicInfo.Top    = 0;
            basicInfo.Left   = 0;
            ctrlPrintQual_1 print = new ctrlPrintQual_1();

            print.Width  = owner.Width;
            print.Height = owner.Height;
            print.Top    = 46;
            print.Left   = 6;
            this.Controls.Add(print);
            this.Controls.Add(basicInfo);
            this.Controls.Add(navigation);
        }