Example #1
0
        void UCOldPartsPalautusManager_AddEvent(object sender, EventArgs e)
        {
            UCOldPartsPalautusAddOrEdit PalautusAdd = new UCOldPartsPalautusAddOrEdit();

            PalautusAdd.uc      = this;
            PalautusAdd.wStatus = WindowStatus.Add;
            base.addUserControl(PalautusAdd, "宇通旧件返厂单-新增", "PalautusAdd", this.Tag.ToString(), this.Name);
        }
Example #2
0
        void UCOldPartsPalautusView_AddEvent(object sender, EventArgs e)
        {
            UCOldPartsPalautusAddOrEdit PalautuAdd = new UCOldPartsPalautusAddOrEdit();

            PalautuAdd.wStatus = WindowStatus.Add;
            PalautuAdd.uc      = uc;
            base.addUserControl(PalautuAdd, "宇通旧件返厂单-新增", "PalautuAdd" + PalautuAdd.strId, this.Tag.ToString(), this.Name);
            deleteMenuByTag(this.Tag.ToString(), PalautuAdd.Name);
        }
Example #3
0
        void UCOldPartsPalautusView_EditEvent(object sender, EventArgs e)
        {
            UCOldPartsPalautusAddOrEdit PalautusEdit = new UCOldPartsPalautusAddOrEdit();

            PalautusEdit.wStatus = WindowStatus.Edit;
            PalautusEdit.uc      = uc;
            PalautusEdit.strId   = strPalautusId; //编辑单据的Id值
            base.addUserControl(PalautusEdit, "宇通旧件返厂单-编辑", "PalautusEdit" + PalautusEdit.strId, this.Tag.ToString(), this.Name);
            deleteMenuByTag(this.Tag.ToString(), PalautusEdit.Name);
        }
Example #4
0
        void UCOldPartsPalautusManager_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["return_id"].Value);
            UCOldPartsPalautusAddOrEdit PalautusEdit = new UCOldPartsPalautusAddOrEdit();

            PalautusEdit.uc      = this;
            PalautusEdit.wStatus = WindowStatus.Edit;
            PalautusEdit.strId   = strReId; //编辑单据的Id值
            base.addUserControl(PalautusEdit, "宇通旧件返厂单-编辑", "PalautusEdit" + PalautusEdit.strId, this.Tag.ToString(), this.Name);
        }
 void UCOldPartsPalautusManager_AddEvent(object sender, EventArgs e)
 {
     UCOldPartsPalautusAddOrEdit PalautusAdd = new UCOldPartsPalautusAddOrEdit();
     PalautusAdd.uc = this;
     PalautusAdd.wStatus = WindowStatus.Add;
     base.addUserControl(PalautusAdd, "宇通旧件返厂单-新增", "PalautusAdd", this.Tag.ToString(), this.Name);
 }
 void UCOldPartsPalautusManager_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["return_id"].Value);
     UCOldPartsPalautusAddOrEdit PalautusEdit = new UCOldPartsPalautusAddOrEdit();
     PalautusEdit.uc = this;
     PalautusEdit.wStatus = WindowStatus.Edit;
     PalautusEdit.strId = strReId;  //编辑单据的Id值
     base.addUserControl(PalautusEdit, "宇通旧件返厂单-编辑", "PalautusEdit" + PalautusEdit.strId, this.Tag.ToString(), this.Name);
 }
 void UCOldPartsPalautusView_AddEvent(object sender, EventArgs e)
 {
     UCOldPartsPalautusAddOrEdit PalautuAdd = new UCOldPartsPalautusAddOrEdit();
     PalautuAdd.wStatus = WindowStatus.Add;
     PalautuAdd.uc = uc;
     base.addUserControl(PalautuAdd, "宇通旧件返厂单-新增", "PalautuAdd" + PalautuAdd.strId, this.Tag.ToString(), this.Name);
     deleteMenuByTag(this.Tag.ToString(), "UCOldPartsPalautusView");
 }
 void UCOldPartsPalautusView_EditEvent(object sender, EventArgs e)
 {
     UCOldPartsPalautusAddOrEdit PalautusEdit = new UCOldPartsPalautusAddOrEdit();
     PalautusEdit.wStatus = WindowStatus.Edit;
     PalautusEdit.uc = uc;
     PalautusEdit.strId = strPalautusId;  //编辑单据的Id值
     base.addUserControl(PalautusEdit, "宇通旧件返厂单-编辑", "PalautusEdit" + PalautusEdit.strId, this.Tag.ToString(), this.Name);
     deleteMenuByTag(this.Tag.ToString(), "UCOldPartsPalautusView");
 }