示例#1
0
        public void DealProcNewRq(string Qsrq, string Jsrq, string procName, Model.EACmpCategory model, List <Dictionary <string, object> > list, IDbConnection conn, IDbTransaction trans)
        {
            if (string.IsNullOrEmpty(procName) || procName.Length < 2)
            {
                return;
            }
            var refid = "";
            //foreach (var item in list)
            //{
            //    refid += item["ID"].ToString() + ",";
            //}

            var user = UserService.GetUser();

            Dictionary <string, object> dict = new Dictionary <string, object>();

            dict.Add("UserID", user.Id);
            dict.Add("UserName", user.Name);
            dict.Add("YWID", model.ID);
            dict.Add("DATAID", refid);
            dict.Add("DWBH", model.DWBH);
            dict.Add("TMPTABLE", model.TmpTab); //增加 luchg 20190510
            dict.Add("QSRQ", Qsrq);             //增加 luchg 20190510
            dict.Add("JSRQ", Jsrq);             //增加 luchg 20190510
            ProcHelper.ExecProc(dict, procName, conn, trans);
            //Db.Execute($"exec {procName} @0,@1,@2 ", model.ID, refid, UserService.GetUserId());
        }