コード例 #1
0
        //反审
        private void tsbCheckNoPass_Click(object sender, EventArgs e)
        {
            UserRightManage urm = new UserRightManage();

            if (urm.IsOperateRight(SysParams.UserID, "dbzsh") == false)
            {
                this.ShowAlertMessage("对不起,你没有该功能的操作权限,请与管理员联系!");
                return;
            }


            //更新审核状态
            rbm.ChcekRemoveBill(txtGuid.Text, 0);

            //设置为:没有审核
            SetControlEnable(0);

            //刷新
            if (SendFlag == 0)
            {
                frmRemoveBill.frmremovebill.LoadBill();
            }

            txtCheckDate.Text   = "";
            txtCheckPerson.Text = "";
        }
コード例 #2
0
        //新增
        private void btnAdd_Click(object sender, EventArgs e)
        {
            UserRightManage urm = new UserRightManage();

            if (urm.IsOperateRight(SysParams.UserID, "dbdxz") == false)
            {
                this.ShowAlertMessage("对不起,你没有该功能的操作权限,请与管理员联系!");
                return;
            }


            //清空主表数据
            txtGuid.Text         = Guid.NewGuid().ToString();
            txtBillID.Text       = "";
            cboDepotOut.Text     = "";
            cboDepotIn.Text      = "";
            txtRemark.Text       = "";
            cboHandlePerson.Text = "";
            txtAutoBillID.Text   = GetAutoId("M");


            txtCreateDate.Text   = DateTime.Now.ToString();
            txtCreatePerson.Text = SysParams.UserName;
            txtCheckDate.Text    = "";
            txtCheckPerson.Text  = "";

            //清空明细表
            this.gridControl1.DataSource = IniBindTable();
            gridMaterialGuid.Visible     = false;

            //初始化成没有审核
            SetControlEnable(0);

            tsbCheckPass.Enabled = false;
        }
コード例 #3
0
        //反审
        private void tsbCheckNoPass_Click(object sender, EventArgs e)
        {
            UserRightManage urm = new UserRightManage();

            if (urm.IsOperateRight(SysParams.UserID, "lkdsh") == false)
            {
                this.ShowAlertMessage("对不起,你没有该功能的操作权限,请与管理员联系!");
                return;
            }

            //更新审核状态
            bm.ChcekBill(txtGuid.Text, 0);

            //设置为:没有审核
            SetControlEnable(0);

            // 如果sendflag等于1则是从入库明细查询中进入本窗口,不用刷新父窗口
            if (SendFlag == 0)
            {
                if (this.Tag.ToString() == "I")
                {
                    frmBill.frmbill.LoadBill();
                }
                else if (this.Tag.ToString() == "E")
                {
                    frmBillE.frmbille.LoadBill();
                }
            }

            txtCheckDate.Text   = "";
            txtCheckPerson.Text = "";
        }
コード例 #4
0
        //新增
        private void btnAdd_Click(object sender, EventArgs e)
        {
            UserRightManage urm = new UserRightManage();

            if (urm.IsOperateRight(SysParams.UserID, "lkdxz") == false)
            {
                this.ShowAlertMessage("对不起,你没有该功能的操作权限,请与管理员联系!");
                return;
            }


            //清空主表数据
            txtGuid.Text         = Guid.NewGuid().ToString();
            txtBillID.Text       = "";
            txtBatchNo.Text      = "";
            cboDepot.Text        = "";
            cboDept.Text         = "";
            txtRemark.Text       = "";
            cboSupplier.Text     = "";
            cboStorageType.Text  = "";
            cboBearing.Text      = "";
            cboHandlePerson.Text = "";

            txtAutoBillID.Text = GetAutoId(this.Tag.ToString());


            txtCreateDate.Text   = DateTime.Now.ToString();
            txtCreatePerson.Text = SysParams.UserName;
            txtCheckDate.Text    = "";
            txtCheckPerson.Text  = "";

            if (this.Tag.ToString() == "I")
            {
                this.Text           = "入库单新增";
                cboStorageType.Text = "原料采购入库";
            }
            else
            {
                this.Text           = "出库单新增";
                cboStorageType.Text = "销售发货出库";
            }



            //清空明细表
            this.gridControl1.DataSource = IniBindTable();
            gridMaterialGuid.Visible     = false;

            //初始化成没有审核
            SetControlEnable(0);

            tsbCheckPass.Enabled = false;
        }
コード例 #5
0
ファイル: frmBill.cs プロジェクト: shanzm/Winform-WMS
        private void btnAdd_Click(object sender, EventArgs e)
        {
            UserRightManage urm = new UserRightManage();

            if (urm.IsOperateRight(SysParams.UserID, "lkdxz") == false)
            {
                this.ShowAlertMessage("对不起,你没有该功能的操作权限,请与管理员联系!");
                return;
            }

            frmBillAdd frmBillAdd = new frmBillAdd();

            frmBillAdd.BillAdd("I", this);
        }
コード例 #6
0
ファイル: frmCheckBillAdd.cs プロジェクト: shanzm/Winform-WMS
        //审核
        private void tsbCheckPass_Click(object sender, EventArgs e)
        {
            UserRightManage urm = new UserRightManage();

            if (urm.IsOperateRight(SysParams.UserID, "kcpdsh") == false)
            {
                this.ShowAlertMessage("对不起,你没有该功能的操作权限,请与管理员联系!");
                return;
            }

            //更新审核状态
            rbm.ChcekCheckBill(txtGuid.Text, 1);

            //设置为:已审核
            SetControlEnable(1);
            //刷新
            if (SendFlag == 0)
            {
                frmCheckBill.frmcheckbill.LoadBill();
            }

            txtCheckDate.Text   = DateTime.Now.ToString();
            txtCheckPerson.Text = SysParams.UserName;
        }
コード例 #7
0
ファイル: frmStorageMain.cs プロジェクト: shanzm/Winform-WMS
        private void navBarItem12_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            if (UserRightManage.IsOperateRight(SysParams.UserID, "kh") == false)
            {
                this.ShowAlertMessage("对不起,你没有该功能的操作权限,请与管理员联系!");
                return;
            }
            frmDept frmDept = new frmDept();

            frmDept.Show(this);
        }