Exemplo n.º 1
0
 private void BindGrid(int pageIndex)
 {
     GroupPersonMapController controller = new GroupPersonMapController();
     int rowCount = 0;
     DataSet dst = dst = controller.QueryPersons(pageIndex, 10, out rowCount, this.txtEmpNO.Text.Trim(), this.txtEmpName.Text.Trim(), drpPersonType.SelectedValue, GroupID);
     this.Navigator.TotalCount = rowCount;
     this.gvPerson.DataSource = dst.Tables[0];
     this.gvPerson.DataBind();
 }
Exemplo n.º 2
0
 private void btnConfirm_Click(object sender, EventArgs e)
 {
     bool returnValue = true;
     List<string> selectedPersons = this.GetSelectedPersons();
     if (selectedPersons.Count > 0)
     {
         switch (this.BusinessModel.ToUpper())
         {
             case "PERSONGROUP":
                 returnValue=new GroupPersonMapController().SaveGroupPerson(selectedPersons,this.BusinessID,AppCenter.CurrentPersonAccount);
                 break;
             default:
                 break;
         }
     }
     if (returnValue)
     {
         this.hdfFlag.Value = "1";
         base.ShowMessage(CommonMessage.SaveSuccess);
     }
     else
     {
         base.ShowMessage(CommonMessage.SaveFailed);
     }
 }