Пример #1
0
    public void bindGv()
    {
        int       recordCount = 0;
        DataTable allPrj      = PrjCompleted.GetAllPrj(this.txtPrjCode.Text, this.txtPrjName.Text, this.txtPrjManager.Text, this.dropPrjKindClass.SelectedValue, this.txtStartTime.Text, this.txtEndTime.Text, this.txtOwner.Text, this.dropPrjState.SelectedValue, this.dropWFState.SelectedValue, base.UserCode, this.AspNetPager1.CurrentPageIndex, this.AspNetPager1.PageSize, ref recordCount);

        this.AspNetPager1.RecordCount = recordCount;
        this.AspNetPager1.PageSize    = NBasePage.pagesize;
        this.gvwPrjInfo.DataSource    = allPrj;
        this.gvwPrjInfo.DataBind();
    }
Пример #2
0
 protected void btnSaveData_Click(object sender, System.EventArgs e)
 {
     try
     {
         PrjCompleted.UpdateCompleted(this.hfldCheckedIds.Value, this.txtCompletedDate.Text.Trim(), this.txtCompletedNote.Value);
         base.RegisterScript("top.ui.show('执行成功');window.location = window.location;");
     }
     catch (System.Exception)
     {
         base.RegisterScript("top.ui.alert('执行失败')");
     }
 }
Пример #3
0
    public void bindGv()
    {
        int       recordCount         = 0;
        DataTable completedManageList = PrjCompleted.GetCompletedManageList(this.txtPrjCode.Text.Trim(), this.txtPrjName.Text.Trim(), this.txtPrjManager.Text.Trim(), this.dropPrjState.SelectedValue, this.txtStartTime.Text.Trim(), this.txtEndTime.Text.Trim(), this.txtCompletedTime.Text.Trim(), base.UserCode, this.AspNetPager1.CurrentPageIndex, this.AspNetPager1.PageSize, ref recordCount);

        this.AspNetPager1.RecordCount = recordCount;
        this.AspNetPager1.PageSize    = NBasePage.pagesize;
        this.gvwPrjInfo.DataSource    = completedManageList;
        this.gvwPrjInfo.DataBind();
        if (this.isCompletedApprove.Value == "1")
        {
            this.gvwPrjInfo.Columns[7].Visible = true;
            return;
        }
        this.gvwPrjInfo.Columns[7].Visible = false;
    }
Пример #4
0
    public void BindGv(string prjGuid)
    {
        this.lblBllProducer.Text = PageHelper.QueryUser(this, base.UserCode);
        this.lblPrintDate.Text   = System.DateTime.Now.ToShortDateString();
        DataTable prjComplete = PrjCompleted.GetPrjComplete(prjGuid);

        this.gvComplete.DataSource = prjComplete;
        this.gvComplete.DataBind();
        bool flag = PrjCompleted.IsCompleted(prjGuid);

        if (flag)
        {
            this.trCompleted.Visible        = true;
            this.lblCompletedDate.Text      = Common2.GetTime(PrjCompleted.GetCompletedDate(prjGuid));
            this.td_completedNote.InnerHtml = PrjCompleted.GetCompletedNote(prjGuid);
        }
    }
Пример #5
0
 protected void Page_Load(object sender, System.EventArgs e)
 {
     if (!base.IsPostBack && !string.IsNullOrEmpty(base.Request.QueryString["ic"]))
     {
         this.lblBllProducer.Text = PageHelper.QueryUser(this, base.UserCode);
         this.lblPrintDate.Text   = System.DateTime.Now.ToShortDateString();
         ProjectInfo byId = ProjectInfo.GetById(base.Request["ic"].ToString());
         if (byId != null)
         {
             this.lblPrjCode.Text     = byId.PrjCode;
             this.lblProjectName.Text = byId.PrjName;
             this.lblStartDate.Text   = Common2.GetTime(byId.StartDate);
             this.lblEndDate.Text     = Common2.GetTime(byId.EndDate);
             if (byId.PrjState == 10)
             {
                 this.tr_completedDate.Visible   = true;
                 this.tr_completedNote.Visible   = true;
                 this.lblCompletedDate.Text      = Common2.GetTime(PrjCompleted.GetCompletedDate(base.Request["ic"].ToString()));
                 this.td_completedNote.InnerHtml = PrjCompleted.GetCompletedNote(base.Request["ic"].ToString());
             }
         }
     }
 }
Пример #6
0
 protected void Page_Load(object sender, System.EventArgs e)
 {
     if (!base.IsPostBack)
     {
         string text = base.Request["PrjId"].ToString();
         this.PrjGuid             = text;
         this.hfldProjectId.Value = text;
         this.lblPrjName.Text     = ProjectInfo.GetProjectName(this.PrjGuid);
         PrjCompleted.AddCompleted(this.PrjGuid);
         this.gvComplete.DataSource = PrjCompleted.GetPrjComplete(this.PrjGuid);
         this.gvComplete.DataBind();
         return;
     }
     for (int i = 0; i < this.gvComplete.Rows.Count; i++)
     {
         string text2 = ((TextBox)this.gvComplete.Rows[i].FindControl("txtPrepareStatus")).Text;
         ((Label)this.gvComplete.Rows[i].FindControl("lblPrepareStatus")).Text = StringUtility.ReplaceTxt(text2);
         string text3 = ((TextBox)this.gvComplete.Rows[i].FindControl("txtUncompletedTrans")).Text;
         ((Label)this.gvComplete.Rows[i].FindControl("lblUncompletedTrans")).Text = StringUtility.ReplaceTxt(text3);
         string text4 = ((TextBox)this.gvComplete.Rows[i].FindControl("txtRectification")).Text;
         ((Label)this.gvComplete.Rows[i].FindControl("lblRectification")).Text = StringUtility.ReplaceTxt(text4);
     }
 }
Пример #7
0
 protected void btnSave_Click(object sender, System.EventArgs e)
 {
     try
     {
         for (int i = 0; i < this.gvComplete.Rows.Count; i++)
         {
             PrjCompleted prjCompleted = new PrjCompleted();
             prjCompleted.PrjGuid          = new System.Guid(this.PrjGuid);
             prjCompleted.ID               = System.Guid.NewGuid().ToString();
             prjCompleted.InputDate        = System.DateTime.Now;
             prjCompleted.InputUser        = base.UserCode;
             prjCompleted.PrepareStatus    = ((TextBox)this.gvComplete.Rows[i].FindControl("txtPrepareStatus")).Text;
             prjCompleted.UncompletedTrans = ((TextBox)this.gvComplete.Rows[i].FindControl("txtUncompletedTrans")).Text;
             prjCompleted.Rectification    = ((TextBox)this.gvComplete.Rows[i].FindControl("txtRectification")).Text;
             prjCompleted.PrjCompletedId   = this.gvComplete.DataKeys[i].Value.ToString();
             prjCompleted.Update(prjCompleted);
         }
         base.RegisterScript("top.ui.tabSuccess({ parentName: '_PrjCompletedList' });");
     }
     catch (System.Exception)
     {
         base.RegisterScript("top.ui.alert('保存失败');");
     }
 }