Esempio n. 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("");
        }
Esempio n. 2
0
        public string savadatabill_ship(string jsondetail, string codebill, string inforbill)
        {
            common        cm  = new common();
            datacontext   db  = new datacontext();
            List <string> lw  = db.ship_STR(jsondetail, codebill, inforbill);
            sql           sql = new sql();

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