Browse Source

[WHAT] 增加以ID查詢Member [WHY] ShowEasy 後台開發 [HOW] MemberMaintain_QryService

Dev
berlin-tzen 2 years ago
parent
commit
3d3a7cb88d
  1. 3
      EuroTran/EasyBL.WEBAPP/EasyBL.WEBAPP.csproj
  2. 57
      EuroTran/EasyBL.WEBAPP/ShowEasy/MemberMaintain_QryService.cs
  3. 3
      EuroTran/Entity/Entity.csproj
  4. 4
      EuroTran/WebApp/WebApp.csproj

3
EuroTran/EasyBL.WEBAPP/EasyBL.WEBAPP.csproj

@ -103,6 +103,7 @@
<Compile Include="OPM\OtherExhibitionTG_QryService.cs" />
<Compile Include="RPT\CostAndProfitReportService.cs" />
<Compile Include="ShowEasy\BasicInfoService.cs" />
<Compile Include="ShowEasy\BookingItemMaintain_QryService.cs" />
<Compile Include="ShowEasy\ExhibInfoDescriptionMaintain_QryService.cs" />
<Compile Include="ShowEasy\ExhibDescriptionMaintain_UpdService.cs" />
<Compile Include="ShowEasy\ExhibInfoMediaMaintain_QryService.cs" />
@ -111,6 +112,8 @@
<Compile Include="ShowEasy\ExhibInfoMediaMaintain_UpdService.cs" />
<Compile Include="ShowEasy\ExhibInfoMaintain_UpdService.cs" />
<Compile Include="ShowEasy\ExhibDescriptionMaintain_QryService.cs" />
<Compile Include="ShowEasy\BookingMaintain_QryService.cs" />
<Compile Include="ShowEasy\BookingMaintain_UpdService.cs" />
<Compile Include="ShowEasy\LanguageMaintain_UpdService.cs" />
<Compile Include="ShowEasy\LanguageMaintain_QryService.cs" />
<Compile Include="ShowEasy\ExhibMaintain_QryService.cs" />

57
EuroTran/EasyBL.WEBAPP/ShowEasy/MemberMaintain_QryService.cs

@ -120,6 +120,61 @@ namespace EasyBL.WEBAPP.SYS
#endregion 會員類別管理(分頁查詢)
#region 會員類別管理(以 ID 查詢)
/// <summary>
/// 會員類別管理(以 ID 查詢)
/// </summary>
/// <param name="i_crm"></param>
/// <returns></returns>
///
public List<SETB_CMS_Member> QueryByIDs(RequestMessage i_crm, string sMemberID)
{
ResponseMessage rm = null;
string sMsg = null;
var db = SugarBase.GetIntance();
var saList = new List<SETB_CMS_Member>();
try
{
do
{
saList = db.Queryable<SETB_CMS_Member>()
.Where(t1 => t1.OrgID == i_crm.ORIGID)
.Where(t1 => t1.MemberID == sMemberID).ToList();
rm = new SuccessResponseMessage(null, i_crm);
rm.DATA.Add(BLWording.REL, saList);
} while (false);
}
catch (Exception ex)
{
sMsg = Util.GetLastExceptionMsg(ex);
LogAndSendEmail(sMsg + "Params:" + JsonToString(i_crm), ex, i_crm.ORIGID, i_crm.USERID, nameof(MemberMaintain_QryService), "", "QueryByIDs 會員類別管理(以 ID 查詢)", "", "", "");
}
finally
{
if (null != sMsg)
{
rm = new ErrorResponseMessage(sMsg, i_crm);
}
}
return saList;
}
#endregion 會員類別管理(以 ID 查詢)
}
}

3
EuroTran/Entity/Entity.csproj

@ -65,6 +65,8 @@
<Compile Include="Sugar\SETB_CMS_ExhibInfo.cs" />
<Compile Include="Sugar\SETB_CMS_Exhib_Description.cs" />
<Compile Include="Sugar\SETB_ORG_Organizer.cs" />
<Compile Include="Sugar\SETB_SAL_Booking_Item.cs" />
<Compile Include="Sugar\SETB_SAL_Booking.cs" />
<Compile Include="Sugar\SETB_SAL_Question.cs" />
<Compile Include="Sugar\SETB_SAL_Order.cs" />
<Compile Include="Sugar\SETB_SAL_Survey.cs" />
@ -184,6 +186,7 @@
<Compile Include="ViewModels\View_OPM_OtherExhibitionTG.cs" />
<Compile Include="ViewModels\View_OPM_OtherExhibition.cs" />
<Compile Include="ViewModels\View_ORG_Organizer.cs" />
<Compile Include="ViewModels\View_SAL_Booking.cs" />
<Compile Include="ViewModels\View_SAP_BasicInfo.cs" />
<Compile Include="ViewModels\View_SAP_Theme.cs" />
<Compile Include="ViewModels\View_SYS_Language.cs" />

4
EuroTran/WebApp/WebApp.csproj

@ -321,8 +321,10 @@
<Content Include="Page\RPT\CVPAnalysisByExhibition.html" />
<Content Include="Page\RPT\CashFlow.html" />
<Content Include="Page\ShowEasy\ExhibMaintain_Qry.html" />
<Content Include="Page\ShowEasy\BookingMaintain_Qry.html" />
<Content Include="Page\ShowEasy\OrderMaintain_Qry.html" />
<Content Include="Page\ShowEasy\ExhibMaintain_Upd.html" />
<Content Include="Page\ShowEasy\BookingMaintain_Upd.html" />
<Content Include="Page\ShowEasy\OrderMaintain_Upd.html" />
<Content Include="Page\ShowEasy\SurveyMaintain_Upd.html" />
<Content Include="Page\ShowEasy\SurveyMaintain_Qry.html" />
@ -886,8 +888,10 @@
<Content Include="Scripts\pages\ShowEasy\ExhibInfoMaintain_Qry.js" />
<Content Include="Scripts\pages\ShowEasy\ExhibMaintain_Qry.js" />
<Content Include="Scripts\pages\ShowEasy\ExhibInfoMaintain_Upd.js" />
<Content Include="Scripts\pages\ShowEasy\BookingMaintain_Qry.js" />
<Content Include="Scripts\pages\ShowEasy\OrderMaintain_Qry.js" />
<Content Include="Scripts\pages\ShowEasy\ExhibMaintain_Upd.js" />
<Content Include="Scripts\pages\ShowEasy\BookingMaintain_Upd.js" />
<Content Include="Scripts\pages\ShowEasy\OrderMaintain_Upd.js" />
<Content Include="Scripts\pages\ShowEasy\SurveyMaintain_Upd.js" />
<Content Include="Scripts\pages\ShowEasy\SurveyMaintain_Qry.js" />

|||||||
100:0
Loading…
Cancel
Save