public CommonReturnType GetFundingandPayoutDashboard(string fund, string flg, string Fromdt, string Todate) { DataSet dtdata = null; CommonReturnType cmd = new CommonReturnType(); try { string xmldata = ""; Sipdashboard obj = Sipdashboard.GetInstance; obj.fund = fund; obj.flg = flg; obj.Fromdt = Fromdt; obj.Todate = Todate; xmldata = BllCommonUtility.SerializeToXml(obj); using (KlocDalServiceClient dalObjecet = new KlocDalServiceClient()) { dtdata = dalObjecet.GetFundingandPayoutDashboard(xmldata, fund); cmd.Status = true; } } catch (Exception ex) { Util.WriteLog(ex.Source, ex.Message, ex.StackTrace); defMsg = "An Error Accoured While Data Processing!"; cmd.Status = false; dtdata = Util.GetErrorcode("1", defMsg); } finally { cmd.JSONData = cmd.Serialize_JsonData(dtdata); cmd.ds = dtdata; } return(cmd); }
public KlocModel.CommonReturnType GetAllFunds(string userid) { IncomingWebRequestContext request = WebOperationContext.Current.IncomingRequest; WebHeaderCollection headers = request.Headers; DataSet dtdata = null; CommonReturnType cmd = new CommonReturnType(); try { string xmldata = ""; NexPurchase obj = new NexPurchase(); obj.UserID = userid; xmldata = BllCommonUtility.SerializeToXml(obj); using (KlocDalServiceClient dalObjecet = new KlocDalServiceClient()) { dtdata = dalObjecet.GetAllFunds(xmldata); cmd.Status = true; } } catch (Exception ex) { Util.WriteLog(ex.Source, ex.Message, ex.StackTrace); defMsg = "An Error Accoured While Data Processing!"; cmd.Status = false; dtdata = Util.GetErrorcode("1", defMsg); } finally { cmd.JSONData = cmd.Serialize_JsonData(dtdata); cmd.ds = dtdata; } return(cmd); }
public DataSet GetDcrDashboardScheduler(string fundcode, string flg) { DataSet dtdata = new DataSet(); try { string xmldata = ""; Sipdashboard obj = Sipdashboard.GetInstance; obj.flg = flg; xmldata = BllCommonUtility.SerializeToXml(obj); CommonReturnType cmd = new CommonReturnType(); KlocDalServiceClient dalObjecet = new KlocDalServiceClient(); dtdata = dalObjecet.GetDcrDashboardScheduler(fundcode, flg, xmldata); } catch (Exception ex) { Util.WriteLog(ex.Source, ex.Message, ex.StackTrace); defMsg = "An Error Accoured While Data Processing!"; dtdata = Util.GetErrorcode("1", defMsg); } return(dtdata); }
public DataSet GetExchageofflineDetails(string fundcode, string flg, string Todate, string FileName) { DataSet dtdata = new DataSet(); try { string xmldata = ""; Sipdashboard obj = Sipdashboard.GetInstance; obj.flg = flg; obj.Todate = Todate; obj.fund = fundcode; xmldata = BllCommonUtility.SerializeToXml(obj); CommonReturnType cmd = new CommonReturnType(); KlocDalServiceClient dalObjecet = new KlocDalServiceClient(); dtdata = dalObjecet.GetExchageofflineDetails(xmldata, fundcode, FileName); } catch (Exception ex) { Util.WriteLog(ex.Source, ex.Message, ex.StackTrace); defMsg = "An Error Accoured While Data Processing!"; dtdata = Util.GetErrorcode("1", defMsg); } return(dtdata); }