コード例 #1
0
        void UCFetchMaterialManager_AddEvent(object sender, EventArgs e)
        {
            UCFetchMaterialAddOrEdit MaterialAdd = new UCFetchMaterialAddOrEdit();

            MaterialAdd.uc      = this;
            MaterialAdd.wStatus = WindowStatus.Add;
            base.addUserControl(MaterialAdd, "领料单-新增", "MaterialAdd", this.Tag.ToString(), this.Name);
        }
コード例 #2
0
        void UCFetchMaterialView_AddEvent(object sender, EventArgs e)
        {
            UCFetchMaterialAddOrEdit MaterialAdd = new UCFetchMaterialAddOrEdit();

            MaterialAdd.wStatus = WindowStatus.Add;
            MaterialAdd.uc      = uc;
            base.addUserControl(MaterialAdd, "领料单-新增", "MaterialAdd" + MaterialAdd.strId, this.Tag.ToString(), this.Name);
            deleteMenuByTag(this.Tag.ToString(), "UCFetchMaterialView");
        }
コード例 #3
0
        void UCFetchMaterialView_CopyEvent(object sender, EventArgs e)
        {
            UCFetchMaterialAddOrEdit MaterialCopy = new UCFetchMaterialAddOrEdit();

            MaterialCopy.wStatus = WindowStatus.Copy;
            MaterialCopy.uc      = uc;
            MaterialCopy.strId   = strRescueId;
            base.addUserControl(MaterialCopy, "领料单-复制", "MaterialCopy" + MaterialCopy.strId, this.Tag.ToString(), this.Name);
            deleteMenuByTag(this.Tag.ToString(), "UCFetchMaterialView");
        }
コード例 #4
0
        void UCFetchMaterialView_EditEvent(object sender, EventArgs e)
        {
            UCFetchMaterialAddOrEdit MaterialEdit = new UCFetchMaterialAddOrEdit();

            MaterialEdit.wStatus = WindowStatus.Edit;
            MaterialEdit.uc      = uc;
            MaterialEdit.strId   = strRescueId;
            base.addUserControl(MaterialEdit, "领料单-编辑", "MaterialEdit" + MaterialEdit.strId, this.Tag.ToString(), this.Name);
            deleteMenuByTag(this.Tag.ToString(), "UCFetchMaterialView");
        }
コード例 #5
0
        void UCFetchMaterialManager_EditEvent(object sender, EventArgs e)
        {
            //if (!IsCheck("编辑"))
            //{
            //    return;
            //}
            if (dgvRData.CurrentRow == null || dgvRData.CurrentRow.Index < 0)
            {
                return;
            }
            int intIndex = dgvRData.CurrentRow.Index;

            strReId = CommonCtrl.IsNullToString(dgvRData.Rows[intIndex].Cells["fetch_id"].Value);
            UCFetchMaterialAddOrEdit MaterialEdit = new UCFetchMaterialAddOrEdit();

            MaterialEdit.uc      = this;
            MaterialEdit.wStatus = WindowStatus.Edit;
            MaterialEdit.strId   = strReId; //编辑单据的Id值
            base.addUserControl(MaterialEdit, "领料单-编辑", "MaterialEdit" + MaterialEdit.strId, this.Tag.ToString(), this.Name);
        }
コード例 #6
0
        private void createFetch_Click(object sender, EventArgs e)
        {
            #region 保存现有的用料(配件)信息
            List<SQLObj> listSql = new List<SQLObj>();
            SaveMaterialsData(listSql, strReceiveId);
            bool isSecess = DBHelper.BatchExeSQLMultiByTrans(opName, listSql);
            #endregion
            UCFetchMaterialAddOrEdit MaterialAdd = new UCFetchMaterialAddOrEdit();
            UCFetchMaterialManager ucManager = new UCFetchMaterialManager();
            MaterialAdd.wStatus = WindowStatus.Add;
            MaterialAdd.uc = ucManager;
            MaterialAdd.strBefore_orderId = strReceiveId;
            MaterialAdd.CreateFetch();
            base.addUserControl(MaterialAdd, "领料单-新增", "MaterialEdit" + MaterialAdd.strId, this.Tag.ToString(), this.Name);
            isAutoClose = true;

        }
コード例 #7
0
 void UCFetchMaterialManager_AddEvent(object sender, EventArgs e)
 {
     UCFetchMaterialAddOrEdit MaterialAdd = new UCFetchMaterialAddOrEdit();
     MaterialAdd.uc = this;
     MaterialAdd.wStatus = WindowStatus.Add;
     base.addUserControl(MaterialAdd, "领料单-新增", "MaterialAdd", this.Tag.ToString(), this.Name);
 }
コード例 #8
0
        void UCFetchMaterialManager_EditEvent(object sender, EventArgs e)
        {
            //if (!IsCheck("编辑"))
            //{
            //    return;
            //}
            if (dgvRData.CurrentRow==null || dgvRData.CurrentRow.Index < 0)
            {
                return;
            }
            int intIndex=dgvRData.CurrentRow.Index;
            strReId = CommonCtrl.IsNullToString(dgvRData.Rows[intIndex].Cells["fetch_id"].Value);
            UCFetchMaterialAddOrEdit MaterialEdit = new UCFetchMaterialAddOrEdit();
            MaterialEdit.uc = this;
            MaterialEdit.wStatus = WindowStatus.Edit;
            MaterialEdit.strId = strReId;  //编辑单据的Id值
            base.addUserControl(MaterialEdit, "领料单-编辑", "MaterialEdit" + MaterialEdit.strId, this.Tag.ToString(), this.Name);

        }
コード例 #9
0
 void UCFetchMaterialView_AddEvent(object sender, EventArgs e)
 {
     UCFetchMaterialAddOrEdit MaterialAdd = new UCFetchMaterialAddOrEdit();
     MaterialAdd.wStatus = WindowStatus.Add;
     MaterialAdd.uc = uc;
     base.addUserControl(MaterialAdd, "领料单-新增", "MaterialAdd" + MaterialAdd.strId, this.Tag.ToString(), this.Name);
     deleteMenuByTag(this.Tag.ToString(), MaterialAdd.Name);
 }
コード例 #10
0
 void UCFetchMaterialView_CopyEvent(object sender, EventArgs e)
 {
     UCFetchMaterialAddOrEdit MaterialCopy = new UCFetchMaterialAddOrEdit();
     MaterialCopy.wStatus = WindowStatus.Copy;
     MaterialCopy.uc = uc;
     MaterialCopy.strId = strRescueId;
     base.addUserControl(MaterialCopy, "领料单-复制", "MaterialCopy" + MaterialCopy.strId, this.Tag.ToString(), this.Name);
     deleteMenuByTag(this.Tag.ToString(), MaterialCopy.Name);
 }
コード例 #11
0
 void UCFetchMaterialView_EditEvent(object sender, EventArgs e)
 {
     UCFetchMaterialAddOrEdit MaterialEdit = new UCFetchMaterialAddOrEdit();
     MaterialEdit.wStatus = WindowStatus.Edit;
     MaterialEdit.uc = uc;
     MaterialEdit.strId = strRescueId;
     base.addUserControl(MaterialEdit, "领料单-编辑", "MaterialEdit" + MaterialEdit.strId, this.Tag.ToString(), this.Name);
     deleteMenuByTag(this.Tag.ToString(), MaterialEdit.Name);
 }