Example #1
0
        public static string SalePayOperator(string sid)
        {
            string r = "";
            SessionUserValidate iv = SysValidateBll.ValidateSession();

            if (iv.f)
            {
                B_SaleMaterielOrder bso = bsob.Query(" and sid='" + sid + "'");
                VPayOrder           vpo = new VPayOrder();
                VOrderMoney         vm  = bomb.DoorOrderMoney(sid, 1, bso.gdiscount, 1);
                CB_OrderFlow        cof = bwfb.QueryAttrExWorkFlow(sid, "bj");
                vpo.code     = bso.scode;
                vpo.dname    = bso.dname;
                vpo.city     = bso.city;
                vpo.dcode    = bso.citycode;
                vpo.bjr      = cof != null ? cof.maker : "";
                vpo.yingshou = vm.godhjmoney.ToString();
                vpo.yishou   = vm.pmoney.ToString();
                vpo.weishou  = (vm.godhjmoney - vm.pmoney).ToString();
                r            = js.Serialize(vpo);
            }
            else
            {
                r = iv.badstr;
            }
            return(r);
        }
Example #2
0
        public static string ProductionOrder(string sid)
        {
            string r = "";
            SessionUserValidate iv = SysValidateBll.ValidateSession();

            if (iv.f)
            {
                VProduceOrder   vpo = new VProduceOrder();
                B_YqSaleOrder   bso = bsob.Query(" and sid='" + sid + "'");
                CB_OrderFlow    cof = bwfb.QueryAttrExWorkFlow(sid, "sc");
                B_OrderFacotory bof = bofb.Query(" and sid='" + sid + "'");
                vpo.code     = bso.scode;
                vpo.ycode    = bso.ycode;
                vpo.customer = bso.customer;
                vpo.address  = bso.address;
                vpo.dname    = bso.dname;
                vpo.otype    = bso.otype;
                vpo.fname    = bof == null ? "" : bof.dname;
                vpo.scdate   = cof.edate;
                vpo.overdate = bof == null ? "" : CommonBll.GetBdate(bof.overdate);
                vpo.bz       = bso.remark;
                r            = js.Serialize(vpo);
            }
            else
            {
                r = iv.badstr;
            }
            return(r);
        }
Example #3
0
        public static string MzPayOperator(string sid)
        {
            string r = "";
            SessionUserValidate iv = SysValidateBll.ValidateSession();

            if (iv.f)
            {
                VPayOrder     vpo      = new VPayOrder();
                B_MzSaleOrder bso      = bsob.Query(" and sid='" + sid + "'");
                decimal       yingshou = bso.omoney;
                decimal       yishou   = bprb.GetSkMoneyEx(" and sid='" + sid + "'");
                CB_OrderFlow  cof      = bwfb.QueryAttrExWorkFlow(sid, "bj");
                vpo.code     = bso.scode;
                vpo.customer = bso.customer;
                vpo.dname    = bso.dname;
                //vpo.settlment = bso.sname;
                vpo.bjr       = cof != null ? cof.maker : "";
                vpo.yingshou  = yingshou.ToString("#0.00");
                vpo.yishou    = yishou.ToString();
                vpo.weishou   = (yingshou - yishou).ToString("#0.00");
                vpo.telephone = bso.telephone;
                r             = js.Serialize(vpo);
            }
            else
            {
                r = iv.badstr;
            }
            return(r);
        }