コード例 #1
0
        /// <summary>
        /// 根据工作流实例ID得到请示单信息
        /// </summary>
        /// <param name="WFLInstanceId"></param>
        /// <returns></returns>
        public TList <InstructionOfPkurg> GetInstructionOfPkurgByWFLInstanceId(string WFLInstanceId)
        {
            InstructionOfPkurgService rs    = new InstructionOfPkurgService();
            InstructionOfPkurgQuery   query = new InstructionOfPkurgQuery();

            query.Clear();
            query.AppendEquals(string.Empty, InstructionOfPkurgColumn.WflInstanceId, WFLInstanceId);

            SqlSortBuilder <InstructionOfPkurgColumn> sort = new SqlSortBuilder <InstructionOfPkurgColumn>();

            sort.AppendASC(InstructionOfPkurgColumn.CreateAtTime);

            return(rs.Find(query.GetParameters(), sort.GetSortColumns()));
        }
コード例 #2
0
        /// <summary>
        /// 得到请示单列表
        /// </summary>
        /// <returns></returns>
        public TList <InstructionOfPkurg> GetInstructionOfPkurgList()
        {
            InstructionOfPkurgService service = new InstructionOfPkurgService();


            InstructionOfPkurgQuery query = new InstructionOfPkurgQuery();

            query.Clear();

            SqlSortBuilder <InstructionOfPkurgColumn> sort = new SqlSortBuilder <InstructionOfPkurgColumn>();

            sort.AppendASC(InstructionOfPkurgColumn.Date);


            return(service.Find(query.GetParameters(), sort.GetSortColumns()));
        }