Ejemplo n.º 1
0
        protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            string strSerial = this.GridView1.Rows[e.RowIndex].Cells[0].Text;
            string strDeptId = this.GridView1.Rows[e.RowIndex].Cells[11].Text;
            string strFlag   = this.GridView1.Rows[e.RowIndex].Cells[8].Text;

            if (strFlag != "正常消费")
            {
                this.Popup("撤销已审核");
                return;
            }
            Hashtable htapp   = (Hashtable)Application["appconf"];
            string    strcons = (string)htapp["cons"];

            busiq = new BusiComm.BusiQuery(strcons);
            CMSMStruct.LoginStruct ls1 = (CMSMStruct.LoginStruct)Session["Login"];
            try
            {
                busiq.CheckConsItemUndo(strSerial, strDeptId, ls1.strLoginID);
                this.btQuery_Click(null, null);
            }
            catch (Exception er)
            {
                this.clog.WriteLine(er);
                this.SetErrorMsgPageBydir("审核出错,请重试!");
                return;
            }
        }