Ejemplo n.º 1
0
        private void tsbedit_Click(object sender, EventArgs e)
        {
            if (gridView1.RowCount > 0)
            {
                //int intRow = gridView1.GetSelectedRows()[0];
                string guid = ((DataRowView)(gridView1.GetFocusedRow())).Row[0].ToString();

                frmCheckBillAdd frmCheckBillAdd = new frmCheckBillAdd();
                frmCheckBillAdd.BillEdit(guid, this);
            }
        }
Ejemplo n.º 2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            UserRightManage urm = new UserRightManage();

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

            frmCheckBillAdd frmCheckBillAdd = new frmCheckBillAdd();

            frmCheckBillAdd.BillAdd(this);
        }
        private void gridControl1_DoubleClick(object sender, EventArgs e)
        {
            if (bandedGridView1.RowCount > 0)
            {
                //int intRow = gridView1.GetSelectedRows()[0];
                string guid = ((DataRowView)(bandedGridView1.GetFocusedRow())).Row[0].ToString().Trim();
                string flag = ((DataRowView)(bandedGridView1.GetFocusedRow())).Row[3].ToString().Trim();

                switch (flag)
                {
                case "I":      //入库
                    frmBillAdd frmBillAdd = new frmBillAdd();
                    frmBillAdd.SendFlag = 1;
                    frmBillAdd.BillEdit(guid, "I", this);
                    break;

                case "E":     //出库
                    frmBillAdd frmBillAdd2 = new frmBillAdd();
                    frmBillAdd2.SendFlag = 1;
                    frmBillAdd2.BillEdit(guid, "E", this);
                    break;

                case "RI":    //调拨入
                    frmRemoveBillAdd frmRemoveBillAdd = new frmRemoveBillAdd();
                    frmRemoveBillAdd.SendFlag = 1;
                    frmRemoveBillAdd.BillEdit(guid, this);
                    break;

                case "RE":    //调拨出
                    frmRemoveBillAdd frmRemoveBillAdd2 = new frmRemoveBillAdd();
                    frmRemoveBillAdd2.SendFlag = 1;
                    frmRemoveBillAdd2.BillEdit(guid, this);
                    break;

                case "SI":    //盘盈
                    frmCheckBillAdd frmCheckBillAdd = new frmCheckBillAdd();
                    frmCheckBillAdd.SendFlag = 1;
                    frmCheckBillAdd.BillEdit(guid, this);
                    break;

                case "SE":    //盘亏
                    frmCheckBillAdd frmCheckBillAdd2 = new frmCheckBillAdd();
                    frmCheckBillAdd2.SendFlag = 1;
                    frmCheckBillAdd2.BillEdit(guid, this);
                    break;
                }
            }
        }