示例#1
0
 private void ShowInfo(string PD_ID)
 {
     cfs.BLL.OT_PAPERDETAIL bll=new cfs.BLL.OT_PAPERDETAIL();
     cfs.Model.OT_PAPERDETAIL model=bll.GetModel(PD_ID);
     this.lblPD_ID.Text=model.PD_ID;
     this.txtPD_SID.Text=model.PD_SID;
     this.txtPD_QID.Text=model.PD_QID;
     this.txtPD_NUM.Text=model.PD_NUM.ToString();
     this.txtPD_POINT.Text=model.PD_POINT.ToString();
 }
示例#2
0
 private void ShowInfo(string PD_ID)
 {
     cfs.BLL.OT_PAPERDETAIL   bll   = new cfs.BLL.OT_PAPERDETAIL();
     cfs.Model.OT_PAPERDETAIL model = bll.GetModel(PD_ID);
     this.lblPD_ID.Text    = model.PD_ID;
     this.txtPD_SID.Text   = model.PD_SID;
     this.txtPD_QID.Text   = model.PD_QID;
     this.txtPD_NUM.Text   = model.PD_NUM.ToString();
     this.txtPD_POINT.Text = model.PD_POINT.ToString();
 }
示例#3
0
        protected void btnSave_Click(object sender, EventArgs e)
        {
            string strErr = "";

            if (this.txtPD_ID.Text.Trim().Length == 0)
            {
                strErr += "PD_ID不能为空!\\n";
            }
            if (this.txtPD_SID.Text.Trim().Length == 0)
            {
                strErr += "PD_SID不能为空!\\n";
            }
            if (this.txtPD_QID.Text.Trim().Length == 0)
            {
                strErr += "PD_QID不能为空!\\n";
            }
            if (!PageValidate.IsNumber(txtPD_NUM.Text))
            {
                strErr += "PD_NUM格式错误!\\n";
            }
            if (!PageValidate.IsDecimal(txtPD_POINT.Text))
            {
                strErr += "PD_POINT格式错误!\\n";
            }

            if (strErr != "")
            {
                MessageBox.Show(this, strErr);
                return;
            }
            string  PD_ID    = this.txtPD_ID.Text;
            string  PD_SID   = this.txtPD_SID.Text;
            string  PD_QID   = this.txtPD_QID.Text;
            int     PD_NUM   = int.Parse(this.txtPD_NUM.Text);
            decimal PD_POINT = decimal.Parse(this.txtPD_POINT.Text);

            cfs.Model.OT_PAPERDETAIL model = new cfs.Model.OT_PAPERDETAIL();
            model.PD_ID    = PD_ID;
            model.PD_SID   = PD_SID;
            model.PD_QID   = PD_QID;
            model.PD_NUM   = PD_NUM;
            model.PD_POINT = PD_POINT;

            cfs.BLL.OT_PAPERDETAIL bll = new cfs.BLL.OT_PAPERDETAIL();
            bll.Add(model);
            Maticsoft.Common.MessageBox.ShowAndRedirect(this, "保存成功!", "add.aspx");
        }
示例#4
0
        protected void btnSave_Click(object sender, EventArgs e)
        {
            string strErr="";
            if(this.txtPD_ID.Text.Trim().Length==0)
            {
                strErr+="PD_ID不能为空!\\n";
            }
            if(this.txtPD_SID.Text.Trim().Length==0)
            {
                strErr+="PD_SID不能为空!\\n";
            }
            if(this.txtPD_QID.Text.Trim().Length==0)
            {
                strErr+="PD_QID不能为空!\\n";
            }
            if(!PageValidate.IsNumber(txtPD_NUM.Text))
            {
                strErr+="PD_NUM格式错误!\\n";
            }
            if(!PageValidate.IsDecimal(txtPD_POINT.Text))
            {
                strErr+="PD_POINT格式错误!\\n";
            }

            if(strErr!="")
            {
                MessageBox.Show(this,strErr);
                return;
            }
            string PD_ID=this.txtPD_ID.Text;
            string PD_SID=this.txtPD_SID.Text;
            string PD_QID=this.txtPD_QID.Text;
            int PD_NUM=int.Parse(this.txtPD_NUM.Text);
            decimal PD_POINT=decimal.Parse(this.txtPD_POINT.Text);

            cfs.Model.OT_PAPERDETAIL model=new cfs.Model.OT_PAPERDETAIL();
            model.PD_ID=PD_ID;
            model.PD_SID=PD_SID;
            model.PD_QID=PD_QID;
            model.PD_NUM=PD_NUM;
            model.PD_POINT=PD_POINT;

            cfs.BLL.OT_PAPERDETAIL bll=new cfs.BLL.OT_PAPERDETAIL();
            bll.Add(model);
            Maticsoft.Common.MessageBox.ShowAndRedirect(this,"保存成功!","add.aspx");
        }