Exemplo n.º 1
0
        private void barButtonItem3_ItemClick_1(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var dr = WbGridView.GetRow(WbGridView.FocusedRowHandle) as WBListMake_Result;

            var f = new frmWayBillMakePropsDet(dr.WbillId);

            if (f.ShowDialog() == DialogResult.OK)
            {
                RefreshAtribute(dr.WbillId);
            }
        }
Exemplo n.º 2
0
        void GetWBListMake()
        {
            if (wbSatusList.EditValue == null || WhComboBox.EditValue == null || DocsTreeList.FocusedNode == null)
            {
                return;
            }

            var satrt_date = wbStartDate.DateTime < DateTime.Now.AddYears(-100) ? DateTime.Now.AddYears(-100) : wbStartDate.DateTime;
            var end_date   = wbEndDate.DateTime < DateTime.Now.AddYears(-100) ? DateTime.Now.AddYears(100) : wbEndDate.DateTime;

            var dr = WbGridView.GetRow(WbGridView.FocusedRowHandle) as WBListMake_Result;

            int top_row = WbGridView.TopRowIndex;

            WBListMakeBS.DataSource = DB.SkladBase().WBListMake(satrt_date, end_date, (int)wbSatusList.EditValue, WhComboBox.EditValue.ToString(), focused_tree_node.Num, -20).ToList();
            WbGridView.TopRowIndex  = top_row;
        }
Exemplo n.º 3
0
        private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var dr = WbGridView.GetRow(WbGridView.FocusedRowHandle) as WBListMake_Result;

            if (dr == null)
            {
                return;
            }

            using (var f = new frmTechProcDet(dr.WbillId))
            {
                if (f.ShowDialog() == DialogResult.OK)
                {
                    if (DB.SkladBase().WaybillList.Any(a => a.WbillId == dr.WbillId))
                    {
                        RefreshTechProcDet(dr.WbillId);
                    }
                    else
                    {
                        RefrechItemBtn.PerformClick();
                    }
                }
            }
        }