Beispiel #1
0
 public void InitPage()
 {
     if (!string.IsNullOrEmpty(this.consRepId))
     {
         try
         {
             string strWhere = string.Concat(new string[]
             {
                 " where I_XGID='",
                 this.consRepId,
                 "' and V_YHDM='",
                 base.UserCode,
                 "'"
             });
             PTDbsjBll pTDbsjBll = new PTDbsjBll();
             System.Collections.Generic.List <PTDbsjModel> listArray = pTDbsjBll.GetListArray(strWhere);
             if (listArray.Count == 1)
             {
                 pTDbsjBll.Delete(listArray[0].I_DBSJ_ID);
             }
         }
         catch
         {
         }
     }
 }
Beispiel #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         if (!string.IsNullOrEmpty(base.Request["planType"]))
         {
             string a = base.Request["planType"].ToString();
             if (a == "0")
             {
                 this.ShowAudit1.BusiCode = "130";
             }
             else
             {
                 this.ShowAudit1.BusiCode = "131";
             }
         }
         DataTable dataTable = PersonnelAction.QueryPersonnelById(base.UserCode);
         if (dataTable != null && dataTable.Rows.Count == 1)
         {
             this.lblBllProducer.Text = dataTable.Rows[0]["v_xm"].ToString();
         }
         this.lblPrintDate.Text = DateTime.Now.ToShortDateString();
         if (base.Request.QueryString["type"] == "0")
         {
             PTDbsjBll   pTDbsjBll  = new PTDbsjBll();
             PTDbsjModel modelByGID = pTDbsjBll.GetModelByGID(this.wkpid);
             pTDbsjBll.Delete(modelByGID.I_DBSJ_ID);
         }
         MainPlan model = new MainPlanAndAction().GetModel(new Guid(this.wkpid));
         this.lblCode.Text       = model.WkpUserCode;
         this.lblDate.Text       = model.WkpRecordDate.ToShortDateString();
         this.lblPart.Text       = new MainPlanAndAction().BackDept(model.WkpDeptId);
         this.lblReportName.Text = new MainPlanAndAction().BackUserName(model.WkpReportUser);
         string    sqlString  = "select * from pm_workplan_plansummary where wkpid='" + new Guid(this.wkpid) + "'";
         DataTable dataTable2 = publicDbOpClass.DataTableQuary(sqlString);
         if (dataTable2.Rows.Count > 0)
         {
             this.lblPlanSumm.Text = dataTable2.Rows[0]["wkpremarks"].ToString();
             this.lblScore.Text    = dataTable2.Rows[0]["wkpselfscore"].ToString();
             this.lblSumm.Text     = dataTable2.Rows[0]["wkpsummary"].ToString();
         }
         else
         {
             this.lblPlanSumm.Text = "";
             this.lblScore.Text    = "";
             this.lblSumm.Text     = "";
         }
         this.dl_Bind();
     }
 }
Beispiel #3
0
 public void InitPage()
 {
     if (!string.IsNullOrEmpty(this.ic))
     {
         try
         {
             PTDbsjBll   pTDbsjBll  = new PTDbsjBll();
             PTDbsjModel modelByGID = pTDbsjBll.GetModelByGID(this.ic);
             pTDbsjBll.Delete(modelByGID.I_DBSJ_ID);
         }
         catch
         {
         }
     }
 }
Beispiel #4
0
 protected void DelClicked()
 {
     try
     {
         string strWhere = string.Concat(new string[]
         {
             " where I_XGID='",
             base.Request["id"],
             "' and V_YHDM='",
             base.UserCode,
             "'"
         });
         PTDbsjBll pTDbsjBll = new PTDbsjBll();
         System.Collections.Generic.List <PTDbsjModel> listArray = pTDbsjBll.GetListArray(strWhere);
         if (listArray.Count > 0)
         {
             pTDbsjBll.Delete(listArray[0].I_DBSJ_ID);
         }
     }
     catch
     {
     }
 }