private int SetEntity(int iDevolveStatus, int FK_ArchiveId, string sNo, int iOAID, string RejectReason, int iSerialNo, string sTransferXML, string sFormsData, string sProcName) { EntityOADevolveHistory entity = new EntityOADevolveHistory(); try { entity.DevolveDate = DateTime.Now; entity.DevolveStatus = iDevolveStatus; entity.FK_ArchiveId = FK_ArchiveId; entity.No = sNo; entity.OAID = iOAID; entity.ProcessDate = DateTime.Now; entity.RejectReason = RejectReason; entity.SerialNo = iSerialNo; entity.TransferXML = sTransferXML; entity.FormsData = sFormsData; entity.ProcessName = sProcName; entity.Save(); return(_ID = entity.ID); } catch { return(0); } }
private int SetEntity( int iDevolveStatus, int FK_ArchiveId, string sNo, int iOAID, string RejectReason, int iSerialNo, string sTransferXML, string sFormsData, string sProcName) { EntityOADevolveHistory entity = new EntityOADevolveHistory(); try { entity.DevolveDate = DateTime.Now; entity.DevolveStatus = iDevolveStatus; entity.FK_ArchiveId = FK_ArchiveId; entity.No = sNo; entity.OAID = iOAID; entity.ProcessDate = DateTime.Now; entity.RejectReason = RejectReason; entity.SerialNo = iSerialNo; entity.TransferXML = sTransferXML; entity.FormsData = sFormsData; entity.ProcessName = sProcName; entity.Save(); return _ID = entity.ID; } catch { return 0; } }