protected void btnSave_Click(object sender, EventArgs e) { var workID = Request.QueryString["WorkID"]; var logic = new TSysLogLogic(); if (this.hidIsNew.Value == "true") { var vo = new TSysLogVo(); vo.ID = i3.View.PageBase.GetSerialNumber("log_id"); vo.LOG_CONTENT = txtContent.Text; vo.LOG_TIME = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); vo.REMARK3 = workID; logic.Create(vo); } else { var vo = logic.SelectByObject(new TSysLogVo { ID = this.hidContractId.Value }); vo.LOG_CONTENT = txtContent.Text; logic.Edit(vo); } }
protected void btnApprove_Click(object sender, EventArgs e) { var logic = new TSysLogLogic(); var vo = logic.SelectByObject(new TSysLogVo { ID = this.hidContractId.Value }); vo.REMARK2 = txtApprove.Text; logic.Edit(vo); }