예제 #1
0
        private void frmSalesOrder_Load(object sender, EventArgs e)
        {
            frmSysAttachFiles frm = new frmSysAttachFiles();

            frm.SourceGuid = soguid;
            frm.TopLevel   = false;
            //frm.Tag = newItem; //存放选项卡对象,方便后续在事件里关闭选项卡
            frm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            frm.Dock            = DockStyle.Fill;
            stcpSys_AttachFiles.Controls.Add(frm);
            frm.Show();
            BindComboBox();
            InitData();
            this.SaveAttach += new dlgSaveAttach(frm.SaveAttach);
            operFlag         = true;
        }
예제 #2
0
        private void frmSalesReturn_Load(object sender, EventArgs e)
        {
            colModel.ButtonCustomClick += new EventHandler <EventArgs>(editControl_ButtonCustomClick);
            colModel.ButtonClearClick  += new EventHandler <CancelEventArgs>(editControl_ButtonClearClick);
            frmSysAttachFiles frm = new frmSysAttachFiles();

            frm.SourceGuid = SRGuid;
            frm.TopLevel   = false;
            //frm.Tag = newItem; //存放选项卡对象,方便后续在事件里关闭选项卡
            frm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            frm.Dock            = DockStyle.Fill;
            stcpSys_AttachFiles.Controls.Add(frm);
            frm.Show();
            BindComboBox();
            InitData();
            this.SaveAttach += new dlgSaveAttach(frm.SaveAttach);
            operFlag         = true;
        }