• BPM事件


    Context context = Context.Current;
    try
    {       
        string query = "update  SpendApplication set dr='1' where TaskID={0}";
                query = String.Format(query,context.Task.TaskID);
                DataSourceManager.ExecuteNonQuery("BPMDATA", query);


    query = "update  Spend_ct   set dr='1' where TaskID={0}";
                query = String.Format(query,context.Task.TaskID);
                DataSourceManager.ExecuteNonQuery("BPMDATA", query);
     
    FlowDataTable fdt = Context.Current.FormDataSet.Tables["SpendApplication"];
       foreach (FlowDataRow row  in fdt.Rows)
        {     string lrr=row["lrr"]==null?"":row["lrr"].ToString();
                string YsDjh=row["YsDjh"]==null?"":row["YsDjh"].ToString();
                Double    APPlyAmount=row["APPlyAmount"]==null?0:Convert.ToDouble(row["APPlyAmount"].ToString());
                 Double    cwfkjes=row["cwfkjes"]==null?0:Convert.ToDouble(row["cwfkjes"].ToString());
                 query = "    update  BD_OutInfo    set OutAmounts=OutAmounts-{1} where  YsDjh='{0}'  and   OutAmounts>={1}";
            
               if(string.IsNullOrEmpty(lrr))
                   {
                      query = String.Format(query,YsDjh,APPlyAmount);
                     }
                 else 
                   {
                      query = String.Format(query,YsDjh,cwfkjes);
                      }         
          
                DataSourceManager.ExecuteNonQuery("BPMDATA", query);
          }
      

     
    }
    catch(Exception e)

    {

    throw e;
    }

  • 相关阅读:
    hdu5233 Gunner II
    hdu5247 找连续数
    hdu5246 超级赛亚ACMer
    codeforces Looksery Cup 2015 C. The Game Of Parity
    Spring系列之Spring常用注解总结
    jni不通过线程c回调java的函数 --总结
    Spring声明周期的学习心得
    java web20套项目
    jsp和servlet的关系
    JavaWeb开发之四:servlet技术 黑马程序员_轻松掌握JavaWeb开发之四Servlet开发 方立勋老师视频教程相当的经典
  • 原文地址:https://www.cnblogs.com/passerlee/p/10050309.html
Copyright © 2020-2023  润新知