Exemple #1
0
 private void CheckPercent(string strWBSCode, string strPercent)
 {
     if (int.Parse(strPercent) >= 100)
     {
         WBSStatus myChangeStatus = new WBSStatus();
         // 更新任务状态为完成
         myChangeStatus.FinishProcess(strWBSCode, DateTime.Now.ToString("yyyy-MM-dd"), (string)ViewState["ProjectCode"]);
     }
 }
Exemple #2
0
        /// <summary>
        /// 更新进度和状态
        /// </summary>
        /// <param name="strWBSCode"></param>
        /// <param name="strPercent"></param>
        private void CheckPercent(string strWBSCode, string strPercent)
        {
            WBSStatus myChangeStatus = new WBSStatus();

            if (int.Parse(strPercent) >= 100)
            {
                // 更新任务状态为完成
                myChangeStatus.FinishProcess(strWBSCode, DateTime.Now.ToString("yyyy-MM-dd"), (string)ViewState["ProjectCode"]);
                return;
            }

            int status = BLL.WBSRule.GetTaskStatus(strWBSCode);

            if (status == 0 && int.Parse(strPercent) > 0)
            {
                myChangeStatus.StartProcess(strWBSCode, DateTime.Now.ToString("yyyy-MM-dd"));
            }
        }