屠宰场客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

46 lines
1.6 KiB

using BO.BO;
using Forks.JsonRpc.Client;
using Forks.JsonRpc.Client.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BO.Utils.BillRpc
{
public static class WeightBillRpc
{
public static bool Send(WeightBill bo)
{
const string method = "/MainSystem/B3ClientService/Rpcs/BillRpc/WeightBillRpc/UploadBill";
var obj = new RpcObject("/MainSystem/B3ClientService/BO/WeightBill");
obj.Set("CreaterName", bo.CreaterName);
obj.Set("Supplier_ID", bo.Supplier_ID);
obj.Set("Supplier_Name", bo.Supplier_Name);
obj.Set("PurchaseType_ID", bo.PurchaseType_ID);
obj.Set("PurchaseType_Name", bo.PurchaseType_Name);
obj.Set("WeightTime", bo.WeightTime);
obj.Set("Car_ID", bo.Car_ID);
obj.Set("Car_Name", bo.Car_Name);
obj.Set("Livestock_ID", bo.Livestock_ID);
obj.Set("Livestock_Name", bo.Livestock_Name);
obj.Set("Employee_ID", bo.Employee_ID);
obj.Set("Employee_Name", bo.Employee_Name);
obj.Set("HogGrade_ID", bo.HogGrade_ID);
obj.Set("HogGrade_Name", bo.HogGrade_Name);
obj.Set("Zone_ID", bo.Zone_ID);
obj.Set("Zone_Name", bo.Zone_Name);
obj.Set("PenWeight", bo.PenWeight);
obj.Set("PenPrice", bo.PenPrice);
obj.Set("PenMoney", bo.PenMoney);
obj.Set("AnimalTestNumber", bo.AnimalTestNumber);
obj.Set("AnimalTestDate", bo.AnimalTestDate);
obj.Set("AnimalTestMan", bo.AnimalTestMan);
obj.Set("Remark", bo.Remark);
return RpcFacade.Call<bool>(method, obj);
}
}
}