Example #1
0
 public void Write <R>(IDataOutput <R> o, int proj = 0x00ff) where R : IDataOutput <R>
 {
     if ((proj & ID) == ID)
     {
         o.Put(nameof(id), id, "编号");
     }
     if ((proj & BASIC) == BASIC)
     {
         o.Put(nameof(name), name, "名称");
         o.Put(nameof(descr), descr, "简语");
         if ((proj & BASIC_ICON) == BASIC_ICON)
         {
             o.Put(nameof(icon), icon, "照片");
         }
         o.Put(nameof(tel), tel, "电话");
         o.Put(nameof(city), city, "城市");
         o.Put(nameof(distr), distr, "区县");
         o.Put(nameof(addr), addr, "地址");
     }
     if ((proj & SUPER) == SUPER)
     {
         o.Put(nameof(lic), lic, "工商登记");
         o.Put(nameof(created), created, "创建时间");
         o.Group("经理");
         o.Put(nameof(mgrid), mgrid);
         if ((proj & SUPER_WX) == SUPER_WX)
         {
             o.Put(nameof(mgrwx), mgrwx);
         }
         o.Put(nameof(mgr), mgr);
         o.UnGroup();
     }
     o.Put(nameof(status), status, "状态", STATUS);
 }
Example #2
0
 public void Write <R>(IDataOutput <R> o, int proj = 0x00ff) where R : IDataOutput <R>
 {
     if ((proj & ID) == ID)
     {
         o.Put(nameof(id), id, "订单编号");
     }
     if ((proj & BASIC) == BASIC)
     {
         o.Put(nameof(created), created, "创建时间");
         o.Group("商家");
         o.Put(nameof(shop), shop);
         o.Put(nameof(shopid), shopid);
         o.UnGroup();
         o.Put(nameof(buyer), buyer, "买家");
         if ((proj & BASIC_WX) == BASIC_WX)
         {
             o.Put(nameof(wx), wx);
         }
         o.Group("收货地址");
         o.Put(nameof(city), city);
         o.Put(nameof(distr), distr);
         o.Put(nameof(addr), addr);
         o.UnGroup();
         o.Put(nameof(tel), tel, "联系电话");
         if ((proj & BASIC_DETAIL) == BASIC_DETAIL)
         {
             o.Put(nameof(detail), detail);
         }
         o.Put(nameof(note), note, "附加说明");
         o.Put(nameof(total), total, "应付金额", '¥');
     }
     if ((proj & CASH) == CASH)
     {
         o.Put(nameof(cash), cash, "实收金额", '¥');
     }
     if ((proj & FLOW) == FLOW)
     {
         o.Put(nameof(accepted), accepted, "接受时间");
         o.Put(nameof(coshopid), coshopid, "受托商家");
         o.Group("撤销");
         o.Put(nameof(abortion), abortion);
         o.Put(nameof(aborted), aborted);
         o.UnGroup();
         o.Put(nameof(shipped), shipped, "确收时间");
     }
     o.Put(nameof(status), status, "订单状态", STATUS);
 }
Example #3
0
 public void Write <R>(IDataOutput <R> o, int proj = 0x00ff) where R : IDataOutput <R>
 {
     o.Put(nameof(name), name, "品名");
     o.Group("数量");
     o.Put(nameof(qty), qty);
     o.Put(nameof(unit), unit);
     o.UnGroup();
     o.Put(nameof(price), price, "单价");
 }
Example #4
0
 public void Write <R>(IDataOutput <R> o, int proj = 0x00ff) where R : IDataOutput <R>
 {
     o.Group("商家");
     o.Put(nameof(shopid), shopid);
     o.Put(nameof(shop), shop);
     o.UnGroup();
     o.Put(nameof(till), till, "截至日期");
     o.Put(nameof(orders), orders, "订单数");
     o.Put(nameof(total), total, "订单总额");
     o.Put(nameof(cash), cash, "转款金额");
     if ((proj & PAYING) == PAYING)
     {
         o.Group("转款操作");
         o.Put(nameof(paid), paid);
         o.Put(nameof(payer), payer);
         o.UnGroup();
         o.Put(nameof(err), err, "出错提示");
     }
     o.Put((string)(string)(string)nameof(status), status, (string)(string)(string)"状态", STATUS);
 }