Beispiel #1
0
        //编辑
        void UCOrganizationView_EditEvent(object sender, EventArgs e)
        {
            UCOrganizationAddOrEdit editFrm = new UCOrganizationAddOrEdit(dsCom, WindowStatus.Edit);

            deleteMenuByTag(this.Tag.ToString(), uc.Name);
            base.addUserControl(editFrm, "组织档案-编辑", "UCSupplierEdit" + id, this.Tag.ToString(), this.Name);
        }
        /// <summary>
        /// 转到添加页
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void UCOrganizationManager_AddEvent(object sender, EventArgs e)
        {
            UCOrganizationAddOrEdit OrganizationAdd = new UCOrganizationAddOrEdit();

            OrganizationAdd.uc      = this;
            OrganizationAdd.wStatus = WindowStatus.Add;
            base.addUserControl(OrganizationAdd, "组织管理-新增", "OrganizationAdd", this.Tag.ToString(), this.Name);
            //订阅新增的保存事件
            OrganizationAdd.SaveEvent += new ClickHandler(OrganizationAdd_SaveEvent);
        }
Beispiel #3
0
        /// <summary>
        /// 转向 复制
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void UCOrganizationManager_CopyEvent(object sender, EventArgs e)
        {
            if (dgvorganization.CurrentRow == null)
            {
                MessageBoxEx.Show("请选择复制记录!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            UCOrganizationAddOrEdit OrganizationCopy = new UCOrganizationAddOrEdit(dsCom, WindowStatus.Copy);

            OrganizationCopy.uc        = this;
            OrganizationCopy.strOrg_id = dgvorganization.CurrentRow.Cells["org_id"].Value.ToString();  //参数 组织管理ID
            base.addUserControl(OrganizationCopy, "组织管理-复制", "OrganizationCopy" + OrganizationCopy.strOrg_id, this.Tag.ToString(), this.Name);
        }
Beispiel #4
0
        /// <summary>
        /// 转到添加页
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void UCOrganizationManager_AddEvent(object sender, EventArgs e)
        {
            UCOrganizationAddOrEdit OrganizationAdd = new UCOrganizationAddOrEdit(dsCom, WindowStatus.Add);

            OrganizationAdd.uc           = this;
            OrganizationAdd.windowStatus = WindowStatus.Add;
            if (this.tvCompany.SelectedNode != null)
            {
                OrganizationAdd.parent_id = this.tvCompany.SelectedNode.Name;
            }
            base.addUserControl(OrganizationAdd, "组织管理-新增", "OrganizationAdd", this.Tag.ToString(), this.Name);
            //订阅新增的保存事件
            OrganizationAdd.SaveEvent += new ClickHandler(OrganizationAdd_SaveEvent);
        }
Beispiel #5
0
        /// <summary>
        /// 编辑
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void UCOrganizationManager_EditEvent(object sender, EventArgs e)
        {
            if (dgvorganization.CurrentRow == null)
            {
                MessageBoxEx.Show("请选择编辑记录!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            UCOrganizationAddOrEdit OrganizationEdit = new UCOrganizationAddOrEdit();

            OrganizationEdit.uc        = this;
            OrganizationEdit.wStatus   = WindowStatus.Edit;
            OrganizationEdit.strOrg_id = dgvorganization.CurrentRow.Cells["org_id"].Value.ToString();  //参数 组织管理ID
            base.addUserControl(OrganizationEdit, "组织管理-编辑", "OrganizationEdit" + OrganizationEdit.strOrg_id, this.Tag.ToString(), this.Name);
        }
 /// <summary>
 /// 转到添加页
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void UCOrganizationManager_AddEvent(object sender, EventArgs e)
 {
     UCOrganizationAddOrEdit OrganizationAdd = new UCOrganizationAddOrEdit();
     OrganizationAdd.uc = this;
     OrganizationAdd.windowStatus = WindowStatus.Add;
     if (this.tvCompany.SelectedNode != null)
     {
         OrganizationAdd.parent_id = this.tvCompany.SelectedNode.Name;
     }
     base.addUserControl(OrganizationAdd, "组织管理-新增", "OrganizationAdd", this.Tag.ToString(), this.Name);
     //订阅新增的保存事件
     OrganizationAdd.SaveEvent += new ClickHandler(OrganizationAdd_SaveEvent);
 }
 /// <summary>
 /// 转向 复制
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void UCOrganizationManager_CopyEvent(object sender, EventArgs e)
 {
     if (dgvorganization.CurrentRow == null)
     {
         MessageBoxEx.Show("请选择复制记录!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     UCOrganizationAddOrEdit OrganizationCopy = new UCOrganizationAddOrEdit();
     OrganizationCopy.uc = this;
     OrganizationCopy.windowStatus = WindowStatus.Copy;
     OrganizationCopy.strOrg_id = dgvorganization.CurrentRow.Cells["org_id"].Value.ToString();  //参数 组织管理ID
     base.addUserControl(OrganizationCopy, "组织管理-复制", "OrganizationCopy" + OrganizationCopy.strOrg_id, this.Tag.ToString(), this.Name);
 }
 /// <summary>
 /// 编辑
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void UCOrganizationManager_EditEvent(object sender, EventArgs e)
 {
     if (dgvorganization.CurrentRow == null)
     {
         MessageBoxEx.Show("请选择编辑记录!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     UCOrganizationAddOrEdit OrganizationEdit = new UCOrganizationAddOrEdit(dsCom, WindowStatus.Edit);
     OrganizationEdit.uc = this;
     OrganizationEdit.strOrg_id = dgvorganization.CurrentRow.Cells["org_id"].Value.ToString();  //参数 组织管理ID
     OrganizationEdit.dsCom = this.dsCom;
     base.addUserControl(OrganizationEdit, "组织管理-编辑", "OrganizationEdit" + OrganizationEdit.strOrg_id, this.Tag.ToString(), this.Name);
 }
 /// <summary>
 /// 转到添加页
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void UCOrganizationManager_AddEvent(object sender, EventArgs e)
 {
     UCOrganizationAddOrEdit OrganizationAdd = new UCOrganizationAddOrEdit();
     OrganizationAdd.uc = this;
     OrganizationAdd.wStatus = WindowStatus.Add;
     base.addUserControl(OrganizationAdd, "组织管理-新增", "OrganizationAdd", this.Tag.ToString(), this.Name);
     //订阅新增的保存事件
     OrganizationAdd.SaveEvent += new ClickHandler(OrganizationAdd_SaveEvent);
 }
 //编辑
 void UCOrganizationView_EditEvent(object sender, EventArgs e)
 {
     UCOrganizationAddOrEdit editFrm = new UCOrganizationAddOrEdit(dsCom,WindowStatus.Edit);
     deleteMenuByTag(this.Tag.ToString(), uc.Name);
     base.addUserControl(editFrm, "组织档案-编辑", "UCSupplierEdit" + id, this.Tag.ToString(), this.Name);
 }