Esempio n. 1
0
 protected void btnCancelInDoor_Click(object sender, ImageClickEventArgs e)
 {
     try
     {
         if (string.IsNullOrEmpty(this.hidCheckFYDSlc.Value))
         {
             this.PrintfError("未选择发运单!");
             return;
         }
         else
         {
             DataSet statusCount = InDoorParam.StatusNo1DS(this.hidCheckFYDSlc.Value.Trim());
             if (statusCount.Tables[0].Rows.Count >= 1)
             {
                 this.PrintfError("不能重进门!");
                 return;
             }
             else
             {
                 InDoorParam indoor = new InDoorParam();
                 indoor.cancelInDoor(this.hidCheckFYDSlc.Value.Trim());
                 this.PrintfError("进门状态已改变,可以刷卡重新进门!");
                 BindGridView();
                 this.hidCheckFYDSlc.Value = "";
             }
         }
     }
     catch (Exception ex)
     {
         String strEx = ex.Message;
         this.PrintfError("撤销失败,请重试!");
         return;
     }
 }