Beispiel #1
0
        public string savadata_sale_ship(string jsonbill, string jsondetail, 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.orderbill_str(jsonbill, codeid, status);
            List <string> strdetail = db.detailorder_str(jsondetail, codeid, status);
            List <string> lw        = new List <string>();

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

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