internal static WOBonusIssue FetchWOBonusByWOID(WOBonusIssue bonusData, SafeDataReader dr) { bonusData.ID = dr.GetInt32("ID"); bonusData.WOID = dr.GetInt32("WOID"); bonusData.BonusIssuePerShare = dr.GetString("BonusIssuePerShare"); bonusData.RegisterOfMembersOn = dr.GetString("RegisterOfMembersOn"); bonusData.AmountPaidOnEachShare = dr.GetString("AmountPaidOnEachShare"); bonusData.TotalNoOfIssuedShares = dr.GetString("TotalNoOfIssuedShares"); bonusData.ResultantIssuedCapital = dr.GetString("ResultantIssuedCapital"); bonusData.ClassOfShare = dr.GetInt32("ClassOfShare"); bonusData.ResultantPaidUpCapital = dr.GetString("ResultantPaidUpCapital"); bonusData.IsRegisteredAddressAsPlaceOfMeeting = dr.GetBoolean("IsRegisteredAddressAsPlaceOfMeeting"); bonusData.MeetingAddressLine1 = dr.GetString("MeetingAddressLine1"); bonusData.MeetingAddressLine2 = dr.GetString("MeetingAddressLine2"); bonusData.MeetingAddressLine3 = dr.GetString("MeetingAddressLine3"); bonusData.MeetingAddressCountry = dr.GetInt32("MeetingAddressCountry"); bonusData.MeetingAddressPostalCode = dr.GetString("MeetingAddressPostalCode"); bonusData.MeetingNotice = dr.GetInt32("MeetingNotice"); bonusData.MeetingNoticeSource = dr.GetString("MeetingNoticeSource"); bonusData.MeetingMinutes = dr.GetInt32("MeetingMinutes"); bonusData.MeetingMinutesSource = dr.GetString("MeetingMinutesSource"); bonusData.OthersMeetingMinutes = dr.GetString("OthersMeetingMinutes"); bonusData.Designation = dr.GetString("Designation"); bonusData.NoticeOfResolution = dr.GetInt32("NoticeOfResolution"); bonusData.NoticeOfResolutionSource = dr.GetString("NoticeOfResolutionSource"); bonusData.LetterOfAllotment = dr.GetInt32("LetterOfAllotment"); bonusData.LetterOfAllotmentSource = dr.GetString("LetterOfAllotmentSource"); bonusData.ReturnOfAllotment = dr.GetInt32("ReturnOfAllotment"); bonusData.ReturnOfAllotmentSource = dr.GetString("ReturnOfAllotmentSource"); bonusData.ShareHoldingStructure = dr.GetInt32("ShareHoldingStructure"); bonusData.ConsiderationOfEachShare = dr.GetString("ConsiderationOfEachShare"); bonusData.TotalNoOfNewSharesToBeAllotted = dr.GetString("TotalNoOfNewSharesToBeAllotted"); bonusData.TotalConsideration = dr.GetString("TotalConsideration"); bonusData.Currency = dr.GetInt32("Currency"); return bonusData; }
public JsonResult SaveWOBonusIssueDetailsByWOID(WOBonusIssue WOBonusData) { System.Diagnostics.StackFrame stackFrame = new System.Diagnostics.StackFrame(); System.Reflection.MethodBase methodBase = stackFrame.GetMethod(); log.Debug("Start: " + methodBase.Name); try { int checkSession = UserLogin.AuthenticateRequest(); if (checkSession == 0) { return Json(checkSession); } else { var objWoBonusDetails = new WOBonusIssue() { WOID = WOBonusData.WOID, BonusIssuePerShare = WOBonusData.BonusIssuePerShare, RegisterOfMembersOn = WOBonusData.RegisterOfMembersOn, AmountPaidOnEachShare = WOBonusData.AmountPaidOnEachShare, TotalNoOfIssuedShares = WOBonusData.TotalNoOfIssuedShares, ResultantIssuedCapital = WOBonusData.ResultantIssuedCapital, //ClassOfShare = WOBonusData.ClassOfShare, ResultantPaidUpCapital = WOBonusData.ResultantPaidUpCapital, IsRegisteredAddressAsPlaceOfMeeting = WOBonusData.IsRegisteredAddressAsPlaceOfMeeting, MeetingAddressLine1 = WOBonusData.MeetingAddressLine1, MeetingAddressLine2 = WOBonusData.MeetingAddressLine2, MeetingAddressLine3 = WOBonusData.MeetingAddressLine3, MeetingAddressCountry = WOBonusData.MeetingAddressCountry, MeetingAddressPostalCode = WOBonusData.MeetingAddressPostalCode, MeetingNotice = WOBonusData.MeetingNotice, MeetingNoticeSource = WOBonusData.MeetingNoticeSource, MeetingMinutes = WOBonusData.MeetingMinutes, MeetingMinutesSource = WOBonusData.MeetingMinutesSource, OthersMeetingMinutes = WOBonusData.OthersMeetingMinutes, Designation = WOBonusData.Designation, NoticeOfResolution = WOBonusData.NoticeOfResolution, NoticeOfResolutionSource = WOBonusData.NoticeOfResolutionSource, LetterOfAllotment = WOBonusData.LetterOfAllotment, LetterOfAllotmentSource = WOBonusData.LetterOfAllotmentSource, ReturnOfAllotment = WOBonusData.ReturnOfAllotment, ReturnOfAllotmentSource = WOBonusData.ReturnOfAllotmentSource, ShareHoldingStructure = WOBonusData.ShareHoldingStructure, SavedBy = checkSession }; checkSession = objWoBonusDetails.SaveWOBonusIssueDetailsByWOID(); return Json(checkSession); } } catch (Exception ex) { log.Error("Error: " + ex); return Json(""); } finally { log.Debug("End: " + methodBase.Name); } }
/// <summary> /// Description : To Get WO bonus Details by WOID. /// Created By : Shiva /// Created Date : 24th Sep 2014 /// Modified By : /// Modified Date: /// </summary> /// <returns>WO bonus details.</returns> public static WOBonusIssue GetWOBonusIssueDetailsByWOID(int WOID) { var BonusData = new WOBonusIssue(); System.Diagnostics.StackFrame stackFrame = new System.Diagnostics.StackFrame(); System.Reflection.MethodBase methodBase = stackFrame.GetMethod(); log.Debug("Start: " + methodBase.Name); try { SqlParameter[] sqlParams = new SqlParameter[1]; sqlParams[0] = new SqlParameter("@WOID", WOID); var reader = SqlHelper.ExecuteReader(CSS2.Models.ConnectionUtility.GetConnectionString(), CommandType.StoredProcedure, "SPGetWOBonusDetailsByWOID", sqlParams); var safe = new SafeDataReader(reader); while (reader.Read()) { WOBonusIssue.FetchWOBonusByWOID(BonusData, safe); } return BonusData; } catch (Exception ex) { log.Error("Error: " + ex); return BonusData; } finally { log.Debug("End: " + methodBase.Name); } }