/// **************************************************************************** /// <summary> /// 提交数据 /// </summary> /// **************************************************************************** public void ConfirmData(bool flag,string Type) { BLL.DesignDocument cDesignDocument = new BLL.DesignDocument(); cDesignDocument.DesignDocumentCode = this.ApplicationCode; if (flag) { cDesignDocument.State = Type + "2"; } else { cDesignDocument.State = Type + "3"; } cDesignDocument.dao = this.dao; cDesignDocument.DesignDocumentSubmit(); }
/// **************************************************************************** /// <summary> /// 提交数据 /// </summary> /// **************************************************************************** public void SubmitData() { BLL.DesignDocument cDesignDocument = new BLL.DesignDocument(); cDesignDocument.DesignDocumentCode = this.ApplicationCode; cDesignDocument.Title = this.txtTitle.Value; cDesignDocument.ProjectCode = this.ProjectCode; cDesignDocument.UnitCode = this.txtUnitCode.Value; cDesignDocument.Context = this.txtContext.Value; cDesignDocument.CreateDate = DateTime.Now.ToString(); cDesignDocument.CreateUser = this.UserCode; cDesignDocument.State = this.DocumentState; cDesignDocument.Flag = this.DocumentFlag; cDesignDocument.dao = this.dao; cDesignDocument.DesignDocumentSubmit(); if (this.ApplicationCode == "") { this.ApplicationCode = cDesignDocument.DesignDocumentCode; this.AttachMentAdd1.SaveAttachMent(this.ApplicationCode); } }