Exemplo n.º 1
0
        /// <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 = XSXServiceFactory.GetService <ICommonService>(ctx);
            DynamicObject  model   = service.installCostRequestPackage(ctx, FormID, fillBillPropertys, "");

            return(model);
        }
Exemplo n.º 2
0
        /// <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    = XSXServiceFactory.GetService <ICommonService>(ctx);
            IOperationResult saveResult = service.SaveBill(ctx, FormID, dyObject);

            return(saveResult);
        }
Exemplo n.º 3
0
        /// <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     = XSXServiceFactory.GetService <ICommonService>(ctx);
            IOperationResult auditResult = service.AuditBill(ctx, formID, ids);

            return(auditResult);
        }
Exemplo n.º 4
0
        /// <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     = XSXServiceFactory.GetService <ICommonService>(ctx);
            DynamicObject  basicObject = service.GetBasicObject(ctx, FormID, ObjectID);

            return(basicObject);
        }
Exemplo n.º 5
0
        /// <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 = XSXServiceFactory.GetService <ICommonService>(ctx);

            service.Log(ctx, Operation, returnResult);
        }