示例#1
0
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="status"></param>
        /// <param name="id"></param>
        public DevAcceptanceBill(winStatusEnum status, AcceptanceBill ab = null)
        {
            InitializeComponent();

            SetFormStatus(status);
            if (ab == null)
                m_acceptance_bill = new AcceptanceBill();
            else
                m_acceptance_bill = ab;
        }
示例#2
0
 private void tsbNew_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     m_acceptance_bill = new AcceptanceBill();
     Object2Form();                      //  对象显示到界面
     SetFormStatus(winStatusEnum.新增);
     SetEditorStatus(true);              // 可以编辑
     dtDrawDate.Focus();                 // 设置输入焦点
 }
示例#3
0
        private void tsbDelete_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            // 只有当前对象有效,才能删除
            if (m_acceptance_bill != null && m_acceptance_bill.ID > 0)
            {
                m_acceptance_bill.Destory();        // 删除对象
                m_acceptance_bill = new AcceptanceBill();  // 新建一个对象,以便清空界面
                Object2Form();

                m_acceptance_bill = null;
                SetFormStatus(winStatusEnum.查看);
            }
        }
 public DevAcceptanceBillFinish(AcceptanceBill ab)
 {
     InitializeComponent();
     m_acceptance_bill = ab;
 }