コード例 #1
0
ファイル: CertificateAdd.aspx.cs プロジェクト: xyecom/AMS
        protected override void BindData()
        {
            long infoId = XYECOM.Core.XYRequest.GetQueryInt64("ce_id");

            this.hidInfoId.Value = infoId.ToString();

            this.reason.Visible = false;
            this.advice.Visible = false;

            Model.CertificateInfo mce = cerBLL.GetItem(infoId);
            //获取证书信息
            if (mce != null)
            {

                this.UploadImage1.InfoID = infoId;

                this.txtname.Text = mce.CE_Name;
                this.txtorgan.Text = mce.CE_Organ;
                this.txtbegin.Text = mce.CE_Begin.ToString("yyyy-MM-dd");
                this.txtupto.Text = mce.CE_Upto.ToString("yyyy-MM-dd");
                this.txttype.SelectedValue = mce.CE_Type.ToString();

                if (mce.AuditingState != XYECOM.Model.AuditingState.Passed)
                {
                    //获取审核信息
                    XYECOM.Model.AuditingInfo audInfo = new XYECOM.Business.Auditing().GetItem(mce.CE_ID.ToString(), "u_Certificate");

                    if (audInfo != null)
                    {
                        this.reason.Visible = true;
                        this.advice.Visible = true;

                        this.txtCausation.InnerHtml = audInfo.A_Reason;
                        this.txtAdvice.InnerHtml = audInfo.A_Advice;
                    }
                }
            }
            else
            {
                this.UploadImage1.InfoID = 0;
            }
        }
コード例 #2
0
ファイル: PartLabelList.aspx.cs プロジェクト: ZhaiQuan/Zhai
        protected void gvlist_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            XYECOM.Business.Auditing audBLL = new XYECOM.Business.Auditing();

            int row = Convert.ToInt32(e.CommandArgument);
            Int64 id = Convert.ToInt64(this.gvlist.DataKeys[row][0].ToString());

            LinkButton lb = (LinkButton)this.gvlist.Rows[row].Cells[8].Controls[0];

            if (e.CommandName == "ChangeAuditing")
            {
                if (lb.Text == "ͨ�����")
                {
                    audBLL.UpdatesAuditing(id, "XY_PartLabel", XYECOM.Model.AuditingState.NoPass);
                }
                else if (lb.Text == "δͨ�����" || lb.Text =="δ���")
                {
                    audBLL.UpdatesAuditing(id, "XY_PartLabel", XYECOM.Model.AuditingState.Passed);
                }
            }
            BindData();
        }
コード例 #3
0
        protected void gvlist_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            int iRowNo = Convert.ToInt32(e.CommandArgument);
            int infoID = Convert.ToInt32(this.gvlist.DataKeys[iRowNo].Value);

            if (e.CommandName == "shenhe")
            {
                LinkButton linkBtn = (LinkButton)this.gvlist.Rows[iRowNo].Cells[6].Controls[0];

                XYECOM.Business.Auditing auditingBLL = new XYECOM.Business.Auditing();

                if (linkBtn.Text == "���ͨ��")
                {
                    int j = auditingBLL.UpdatesAuditing(infoID, "XY_UserDomain", XYECOM.Model.AuditingState.NoPass);
                }
                else if (linkBtn.Text == "���δͨ��" || linkBtn.Text == "δ���")
                {
                    int t = auditingBLL.UpdatesAuditing(infoID, "XY_UserDomain", XYECOM.Model.AuditingState.Passed);
                }

                this.BindData();
            }
        }