Ejemplo n.º 1
0
        protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            string    strOldDeptName = ((Label)this.GridView1.Rows[e.RowIndex].Cells[9].Controls[1]).Text;
            Hashtable htapp          = (Hashtable)Application["appconf"];
            string    strcons        = (string)htapp["cons"];

            busiq = new BusiComm.BusiQuery(strcons);
            try
            {
                bool success = busiq.DeleteDeptInfo(strOldDeptName);
                if (!success)
                {
                    this.SetErrorMsgPageBydir("门店信息删除出错,请重试!");
                    return;
                }
                else
                {
                    this.Query();
                }
            }
            catch (Exception er)
            {
                this.clog.WriteLine(er);
                this.SetErrorMsgPageBydir("门店信息删除错误,请重试!");
                return;
            }
        }