示例#1
0
        /// <summary>
        /// 增加操作校验器
        /// </summary>
        /// <param name="e"></param>
        public override void OnAddValidators(Kingdee.BOS.Core.DynamicForm.PlugIn.Args.AddValidatorsEventArgs e)
        {
            base.OnAddValidators(e);
            //直销事业部启用提交的时候判断
            DynamicObject [] DataEntities = e.DataEntities;
            foreach (var DataEntitie in DataEntities)
            {
                DynamicObject SaleDeptid = DataEntitie["SaleDeptId"] as DynamicObject;
                SaleDept = Convert.ToString(SaleDeptid["Name"]);
                if (SaleDept == "直销事业部")
                {
                    startValidator = true;
                }
            }

            /*停用启动判断
             * if (e.DataEntities == null) return;
             * var billGroups = e.DataEntities;
             * //List<string> sql = new List<string>();
             * string userId = Convert.ToString(this.Context.UserId);
             * List<long> lstFids = new List<long>();
             * foreach (var billGroup in billGroups)
             * {
             *  lstFids.Add(Convert.ToInt64(billGroup["SalerId_Id"]));
             * }
             * SqlParam param = new SqlParam("@salser", KDDbType.udt_inttable, lstFids.ToArray());
             * startValidator=this.setstartValidator(userId,param);*/
            if (startValidator)
            {
                JN_AuditValidator SubmitValidator = new JN_AuditValidator();
                SubmitValidator.EntityKey = "FBillHead";
                e.Validators.Add(SubmitValidator);
            }
        }
示例#2
0
        /// <summary>
        /// 增加操作校验器
        /// </summary>
        /// <param name="e"></param>
        public override void OnAddValidators(Kingdee.BOS.Core.DynamicForm.PlugIn.Args.AddValidatorsEventArgs e)
        {
            base.OnAddValidators(e);
            PurchaseOrderSaveValidator saveValidator = new PurchaseOrderSaveValidator();

            saveValidator.EntityKey = "FBillHead";
            e.Validators.Add(saveValidator);
        }
示例#3
0
        /// <summary>
        /// 增加操作校验器
        /// </summary>
        /// <param name="e"></param>
        public override void OnAddValidators(Kingdee.BOS.Core.DynamicForm.PlugIn.Args.AddValidatorsEventArgs e)
        {
            base.OnAddValidators(e);
            JN_AuditValidator AduitValidator = new JN_AuditValidator();

            AduitValidator.EntityKey = "FBillHead";
            e.Validators.Add(AduitValidator);
        }
示例#4
0
 /// <summary>
 /// 增加操作校验器
 /// </summary>
 /// <param name="e"></param>
 public override void OnAddValidators(Kingdee.BOS.Core.DynamicForm.PlugIn.Args.AddValidatorsEventArgs e)
 {
     base.OnAddValidators(e);
     e.Validators.Add(new JN_EnzymeValidator());
 }
示例#5
0
 /// <summary>
 /// 增加操作校验器
 /// </summary>
 /// <param name="e"></param>
 public override void OnAddValidators(Kingdee.BOS.Core.DynamicForm.PlugIn.Args.AddValidatorsEventArgs e)
 {
     base.OnAddValidators(e);
     e.Validators.Add(new CloserPofileUnAuditValidator());
 }