public static Dictionary<string, double> GetDiscounts(Context ctx, long deptId, DateTime Date)
 {
     ICommonService service = TLMBServiceFactory.GetService<ICommonService>(ctx);
     //ICommonService service = TLMBNewServiceFactory.GetService<ICommonService>(ctx);
     //ICommonService service = TLMBServiceFactory.GetService<ICommonService>(ctx);
     return service.GetDiscounts(ctx, deptId, Date);
 }
 /// <summary>
 /// 构建业务对象数据包
 /// </summary>
 /// <param name="ctx"></param>
 /// <param name="FormID">对象标识</param>
 /// <param name="fillBillPropertys">填充业务对象属性委托对象</param>
 /// <returns></returns>
 public static DynamicObject CreateBillMode(Context ctx, string FormID, Action<IDynamicFormViewService> fillBillPropertys)
 {
     ICommonService service = TLMBServiceFactory.GetService<ICommonService>(ctx);
     DynamicObject model = service.installCostRequestPackage(ctx, FormID, fillBillPropertys, "");
     return model;
 }
 /// <summary>
 /// 保存业务对象
 /// </summary>
 /// <param name="ctx"></param>
 /// <param name="FormID">对象标识</param>
 /// <param name="dyObject">业务对象数据包</param>
 /// <returns></returns>
 public static IOperationResult Save(Context ctx, string FormID, DynamicObject dyObject)
 {
     ICommonService service = TLMBServiceFactory.GetService<ICommonService>(ctx);
     IOperationResult saveResult = service.SaveBill(ctx, FormID, dyObject);
     return saveResult;
 }
        /// <summary>
        /// 记录操作日志
        /// </summary>
        /// <param name="ctx"></param>
        /// <param name="Operation">操作标识</param>
        /// <param name="returnResult">操作结果</param>
        /// <returns></returns>
        public static void Log(Context ctx, string Operation, IOperationResult returnResult)
        {
            ICommonService service = TLMBServiceFactory.GetService<ICommonService>(ctx);
            service.Log(ctx, Operation, returnResult);

        }
 public static void SetState(Context ctx, string FormID, object[] ids, string pkId, string tableName, string fieldName, string fieldValue)
 {
     ICommonService service =  TLMBServiceFactory.GetService<ICommonService>(ctx);
     service.SetState(ctx,FormID,ids,pkId,tableName,fieldName,fieldValue);
 }
 /// <summary>
 /// 审核业务对象
 /// </summary>
 /// <param name="ctx"></param>
 /// <param name="formID">业务对象标识</param>
 /// <param name="ids">业务对象ID集合</param>
 /// <returns></returns>
 public static IOperationResult Audit(Context ctx, string formID, Object[] ids)
 {
     ICommonService service = TLMBServiceFactory.GetService<ICommonService>(ctx);
     IOperationResult auditResult = service.AuditBill(ctx, formID, ids);
     return auditResult;
 }
 /// <summary>
 /// 封装基础资料对象
 /// </summary>
 /// <param name="ctx"></param>
 /// <param name="FormID">基础资料标识</param>
 /// <param name="ObjectID">基础资料ID</param>
 /// <returns></returns>
 public static DynamicObject GetBasicObject(Context ctx, string FormID, long ObjectID)
 {
     ICommonService service = TLMBServiceFactory.GetService<ICommonService>(ctx);
     DynamicObject basicObject = service.GetBasicObject(ctx, FormID, ObjectID);
     return basicObject;
 }
 public static Dictionary<int, double> GetPriceDictionary(Context ctx, string fdeliverydate, long custId, long saleOrgId)
 {
     ICommonService service = TLMBServiceFactory.GetService<ICommonService>(ctx);
     return service.GetPriceDictionary(ctx, fdeliverydate, custId, saleOrgId);
 }