예제 #1
0
        public string savadatabill(string jsonbill, string jsondetail, string obj, string codeid)
        {
            common      cm     = new common();
            datacontext db     = new datacontext();
            int         status = -1;

            if (codeid == "")
            {
                codeid = cm.getcodeId("order");
            }
            else
            {
                status = 1;
            }
            List <string> strbill   = db.buybill_str(jsonbill, codeid, status);
            List <string> strdetail = db.detailbuybill_str(jsondetail, codeid);
            List <string> lw        = new List <string>();

            lw.AddRange(strbill);
            lw.AddRange(strdetail);
            sql sql = new sql();

            sql.Executesql(string.Join(";", lw));
            return("");
        }