コード例 #1
0
        public void UpdateArchiveXH(string archiveID, string XH)
        {
            T_MyArchive_MDL arMDL = myArchiveBLL.GetModel(ConvertEx.ToInt(archiveID));

            if (arMDL != null)
            {
                arMDL.xh = ConvertEx.ToInt(XH);
                myArchiveBLL.Update(arMDL);
            }
        }
コード例 #2
0
        /// <summary>
        /// 保存
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnSave_Click(object sender, EventArgs e)
        {
            if (((CommonEnum.PageState)ViewState["ps"]) == CommonEnum.PageState.EDIT)
            {
                T_MyArchive_MDL Mdl = new T_MyArchive_MDL();
                if (ViewState["model"] != null)
                {
                    Mdl = ViewState["model"] as T_MyArchive_MDL;
                    object          obj    = Comm.GetValueToObject(Mdl, this.tbl);
                    T_MyArchive_MDL newMdl = obj as T_MyArchive_MDL;

                    new T_MyArchive_BLL().Update(newMdl);
                }
            }
            Common.MessageBox.CloseLayerOpenWeb(this.Page);
        }
コード例 #3
0
        /// <summary>
        /// 组卷
        /// </summary>
        /// <returns></returns>
        private int CreateAj(string singleProjectID)
        {
            T_MyArchive_MDL model = new T_MyArchive_MDL();

            model.ajtm            = ajtm.Text;
            model.bzdw            = bzdw.Text;
            model.lrr             = lrr.Text;
            model.lrsj            = ConvertEx.ToDate(lrsj.Text);
            model.ajlx            = ajlx.SelectValue;
            model.qssj            = DateTime.Now;
            model.zzsj            = DateTime.Now;
            model.SingleProjectID = Common.ConvertEx.ToInt(singleProjectID);
            model.xh        = myArchiveBLL.getMaxArchiveXhBySingleProjectID(singleProjectID) + 10;;
            model.CompanyID = Common.Session.GetSessionInt("CompanyID");

            model.note = note.Text;
            model.bgqx = bgqx.SelectValue;
            model.mj   = mj.SelectValue;

            return(myArchiveBLL.Add(model));
        }