protected void btnDelete_Click(object sender, EventArgs e)
 {
     basepay = new PM_StdBasePayBLL();
     if (gvList.SelectedIndex != -1)
     {
         basepay.Delete((int)gvList.SelectedDataKey[0]);
     }
     btnDelete.Text = "删 除";
     BindGrid();
     gvList.SelectedIndex = -1;
     dvBasePay.Visible = false;
     btn_Add.Enabled = true;
 }
 protected void btnDelete_Click(object sender, EventArgs e)
 {
     basepay = new PM_StdBasePayBLL();
     if (gvList.SelectedIndex != -1)
     {
         basepay.Delete((int)gvList.SelectedDataKey[0]);
     }
     btnDelete.Text = "删 除";
     BindGrid();
     gvList.SelectedIndex = -1;
     dvBasePay.Visible    = false;
     btn_Add.Enabled      = true;
 }
 protected void btnSave_Click(object sender, EventArgs e)
 {
     basepay = new PM_StdBasePayBLL();
     dvBasePay.GetData(basepay.Model);
     if (gvList.SelectedIndex!=-1)
     {
         basepay.Model.ID = (int)gvList.SelectedDataKey[0];
         basepay.Update();
     }
     else
         BindData(basepay.Add());
     dvBasePay.Visible = false;
     btn_Add.Enabled = true;
     gvList.SelectedIndex = -1;
     btnDelete.Text = "删 除";
     BindGrid();
 }
 protected void btnSave_Click(object sender, EventArgs e)
 {
     basepay = new PM_StdBasePayBLL();
     dvBasePay.GetData(basepay.Model);
     if (gvList.SelectedIndex != -1)
     {
         basepay.Model.ID = (int)gvList.SelectedDataKey[0];
         basepay.Update();
     }
     else
     {
         BindData(basepay.Add());
     }
     dvBasePay.Visible    = false;
     btn_Add.Enabled      = true;
     gvList.SelectedIndex = -1;
     btnDelete.Text       = "删 除";
     BindGrid();
 }
 private void BindData(int pid)
 {
     basepay = new PM_StdBasePayBLL(pid);
     dvBasePay.BindData(basepay.Model);
 }
 private void BindData(int pid)
 {
     basepay = new PM_StdBasePayBLL(pid);
     dvBasePay.BindData(basepay.Model);
 }