Exemplo n.º 1
0
        void UCOldPartsReceiptManager_AddEvent(object sender, EventArgs e)
        {
            UCOldPartsSendAddOrEdit PartsAdd = new UCOldPartsSendAddOrEdit();

            PartsAdd.uc      = this;
            PartsAdd.wStatus = WindowStatus.Add;
            base.addUserControl(PartsAdd, "旧件发货单-新增", "PartsAdd", this.Tag.ToString(), this.Name);
        }
Exemplo n.º 2
0
        void UCOldPartsReceiptView_AddEvent(object sender, EventArgs e)
        {
            UCOldPartsSendAddOrEdit PartsAdd = new UCOldPartsSendAddOrEdit();

            PartsAdd.wStatus = WindowStatus.Add;
            PartsAdd.uc      = uc;
            base.addUserControl(PartsAdd, "旧件发货单-新增", "PartsAdd" + PartsAdd.strId, this.Tag.ToString(), this.Name);
            deleteMenuByTag(this.Tag.ToString(), "UCOldPartsSendView");
        }
Exemplo n.º 3
0
        void UCOldPartsReceiptView_CopyEvent(object sender, EventArgs e)
        {
            UCOldPartsSendAddOrEdit PartsCopy = new UCOldPartsSendAddOrEdit();

            PartsCopy.wStatus = WindowStatus.Copy;
            PartsCopy.uc      = uc;
            PartsCopy.strId   = strPartsId; //编辑单据的Id值
            base.addUserControl(PartsCopy, "旧件发货单-复制", "PartsCopy" + PartsCopy.strId, this.Tag.ToString(), this.Name);
            deleteMenuByTag(this.Tag.ToString(), "UCOldPartsSendView");
        }
Exemplo n.º 4
0
        void UCOldPartsReceiptView_EditEvent(object sender, EventArgs e)
        {
            UCOldPartsSendAddOrEdit PartsEdit = new UCOldPartsSendAddOrEdit();

            PartsEdit.wStatus = WindowStatus.Edit;
            PartsEdit.uc      = uc;
            PartsEdit.strId   = strPartsId; //编辑单据的Id值
            base.addUserControl(PartsEdit, "救援单-编辑", "PartsEdit" + PartsEdit.strId, this.Tag.ToString(), this.Name);
            deleteMenuByTag(this.Tag.ToString(), "UCOldPartsSendView");
        }
Exemplo n.º 5
0
        void UCOldPartsReceiptManager_CopyEvent(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["oldpart_id"].Value);
            UCOldPartsSendAddOrEdit PartsCopy = new UCOldPartsSendAddOrEdit();

            PartsCopy.uc      = this;
            PartsCopy.wStatus = WindowStatus.Copy;
            PartsCopy.strId   = strReId; //复制单据的Id值
            base.addUserControl(PartsCopy, "旧件发货单-复制", "PartsCopy" + PartsCopy.strId, this.Tag.ToString(), this.Name);
        }
 void UCOldPartsReceiptManager_AddEvent(object sender, EventArgs e)
 {
     UCOldPartsSendAddOrEdit PartsAdd = new UCOldPartsSendAddOrEdit();
     PartsAdd.uc = this;
     PartsAdd.wStatus = WindowStatus.Add;
     base.addUserControl(PartsAdd, "旧件发货单-新增", "PartsAdd", this.Tag.ToString(), this.Name);
 }
 void UCOldPartsReceiptManager_CopyEvent(object sender, EventArgs e)
 {
     //if (!IsCheck("复制"))
     //{
     //    return;
     //}
     if (dgvRData.CurrentRow.Index < 0)
     {
         return;
     }
     int intIndex = dgvRData.CurrentRow.Index;
     strReId = CommonCtrl.IsNullToString(dgvRData.Rows[intIndex].Cells["oldpart_id"].Value);
     UCOldPartsSendAddOrEdit PartsCopy = new UCOldPartsSendAddOrEdit();
     PartsCopy.uc = this;
     PartsCopy.wStatus = WindowStatus.Copy;
     PartsCopy.strId = strReId;  //复制单据的Id值
     base.addUserControl(PartsCopy, "旧件发货单-复制", "PartsCopy" + PartsCopy.strId, this.Tag.ToString(), this.Name);
 }
Exemplo n.º 8
0
 void UCOldPartsReceiptView_AddEvent(object sender, EventArgs e)
 {
     UCOldPartsSendAddOrEdit PartsAdd = new UCOldPartsSendAddOrEdit();
     PartsAdd.wStatus = WindowStatus.Add;
     PartsAdd.uc = uc;
     base.addUserControl(PartsAdd, "旧件发货单-新增", "PartsAdd" + PartsAdd.strId, this.Tag.ToString(), this.Name);
     deleteMenuByTag(this.Tag.ToString(), PartsAdd.Name);
 }
Exemplo n.º 9
0
 void UCOldPartsReceiptView_CopyEvent(object sender, EventArgs e)
 {
     UCOldPartsSendAddOrEdit PartsCopy = new UCOldPartsSendAddOrEdit();
     PartsCopy.wStatus = WindowStatus.Copy;
     PartsCopy.uc = uc;
     PartsCopy.strId = strPartsId;  //编辑单据的Id值
     base.addUserControl(PartsCopy, "旧件发货单-复制", "PartsCopy" + PartsCopy.strId, this.Tag.ToString(), this.Name);
     deleteMenuByTag(this.Tag.ToString(), PartsCopy.Name);
 }
Exemplo n.º 10
0
 void UCOldPartsReceiptView_EditEvent(object sender, EventArgs e)
 {
     UCOldPartsSendAddOrEdit PartsEdit = new UCOldPartsSendAddOrEdit();
     PartsEdit.wStatus = WindowStatus.Edit;
     PartsEdit.uc = uc;
     PartsEdit.strId = strPartsId;  //编辑单据的Id值
     base.addUserControl(PartsEdit, "救援单-编辑", "PartsEdit" + PartsEdit.strId, this.Tag.ToString(), this.Name);
     deleteMenuByTag(this.Tag.ToString(), PartsEdit.Name);
 }