Ejemplo n.º 1
0
 /// <summary>
 /// 更新list里该 StyleNO的IsPADSuccess的更新状态。 
 /// </summary>
 /// <param name="sWorkflowNo"></param>
 /// <param name="sPONO"></param>
 /// <param name="IsPADSuccess"></param>
 void UpdateItemPADState(string sWorkflowNo, string sPONO, bool isPADSuccess)
 {
     Common comm = new Common();
     foreach (RepeaterItem item in RepeaterPOData.Items)
     {
         Label LabelPONO = item.FindControl("LabelTitle") as Label;
         if (sPONO == LabelPONO.Text.Trim())
         {
             HiddenField HiddenFieldIsPADSuccess = item.FindControl("HiddenFieldIsPADSuccess") as HiddenField;
             comm.UpdatePADStatus(sWorkflowNo, sPONO, isPADSuccess);
             HiddenFieldIsPADSuccess.Value = isPADSuccess ? "True" : "False";
         }
     }
 }