예제 #1
0
        public static string MzCustomePayOperator(string sid)
        {
            string r = "";
            SessionUserValidate iv = SysValidateBll.ValidateSession();

            if (iv.f)
            {
                VPayOrder       vpo      = new VPayOrder();
                B_QbqqSaleOrder bso      = bsob.Query(" and sid='" + sid + "'");
                decimal         yingshou = bso.dmoney;
                decimal         yishou   = bprb.GetSkMoneyEx(" and sid='" + sid + "' and ptype='dj'");
                CB_OrderFlow    cof      = cofb.Query(" and sid='" + sid + "' and wcode='0046'");
                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);
        }
예제 #2
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);
        }
예제 #3
0
        public static string AfterSalePayOperator(string sid)
        {
            string r = "";
            SessionUserValidate iv = SysValidateBll.ValidateSession();

            if (iv.f)
            {
                VPayOrder        vpo      = new VPayOrder();
                B_AfterSaleOrder bso      = bsob.Query(" and sid='" + sid + "'");
                decimal          yingshou = bso.omoney;
                decimal          yishou   = bprb.GetSkMoney(sid);
                vpo.code      = bso.scode;
                vpo.customer  = bso.customer;
                vpo.dname     = bso.dname;
                vpo.settlment = "";
                vpo.yingshou  = yingshou.ToString();
                vpo.yishou    = yishou.ToString();
                vpo.weishou   = (yingshou - yishou).ToString();
                r             = js.Serialize(vpo);
            }
            else
            {
                r = iv.badstr;
            }
            return(r);
        }