Ejemplo n.º 1
0
        /// <summary>
        /// 获取PR下一步审核路线
        /// </summary>
        /// <param name="inn"></param>
        /// <param name="id"></param>
        /// <param name="activityId"></param>
        /// <param name="ActivityName"></param>
        /// <param name="b_PrType"></param>
        /// <param name="versionNo"></param>
        /// <returns></returns>
        public static string GetLineNameByActivityName(Innovator inn, string id, string activityId, string ActivityName, string b_PrType, string versionNo)
        {
            string lineName = "agree";

            if (versionNo == "PR_001")
            {
                if (ActivityName == "Start")
                {
                    lineName = "submit";
                }

                if (ActivityName == "Dept.Director")
                {
                    lineName = b_PrType == "project" ? "ProjectPR" : "Dept.PR";
                }

                if (ActivityName == "Purchase Manager")
                {
                    decimal contractPrice = PrManageBll.GetPrContractPrice(inn, id);

                    if (contractPrice >= 250000)
                    {
                        lineName = "(>=250K)";
                    }
                    else
                    {
                        lineName = "(<250K)";
                    }
                }
            }

            if (versionNo == "PR_002")
            {
                if (ActivityName == "Start")
                {
                    lineName = b_PrType == "project" ? "ProjectPR" : "Dept.PR";
                }

                if (ActivityName == "Purchase Manager")
                {
                    decimal contractPrice = PrManageBll.GetPrContractPrice(inn, id);

                    if (contractPrice >= 250000)
                    {
                        lineName = "(>=250K)";
                    }
                    else
                    {
                        lineName = "(<250K)";
                    }
                }
            }
            return(lineName);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 添加备注
 /// </summary>
 /// <returns></returns>
 public static string AddRemark(Innovator inn, string b_Remark, string id, string UserName)
 {
     if (!string.IsNullOrEmpty(b_Remark))
     {
         string oldRemark = PrManageBll.GetOldRemarkById(inn, id);
         if (!string.IsNullOrEmpty(oldRemark))
         {
             b_Remark = oldRemark + "<br/>" + UserName + ":" + b_Remark;
         }
         else
         {
             b_Remark = UserName + ":" + b_Remark;
         }
     }
     return(b_Remark);
 }