SHARE
TWEET

Untitled

a guest May 19th, 2017 37 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Data;
  3. using System.Configuration;
  4. using System.Linq;
  5. using System.Web;
  6. using System.Web.Security;
  7. using System.Web.UI;
  8. using System.Web.UI.HtmlControls;
  9. using System.Web.UI.WebControls;
  10. using System.Web.UI.WebControls.WebParts;
  11. using System.Xml.Linq;
  12.  
  13. namespace LHW_WS_1
  14. {
  15.     public class MemberFrequentFlyerInsertUpdate1
  16.     {
  17.         public string MembershipNumber { get; set; }
  18.         public int ResultCode { get; set; }
  19.  
  20.         public MemberFrequentFlyerInsertUpdate1() { }
  21.  
  22.         public MemberFrequentFlyerInsertUpdate1(string memnum, string FrequentFlyerType, string FrequentFlyerNumber)
  23.         {
  24.             MembershipNumber = memnum;
  25.  
  26.             if (memnum == "" || FrequentFlyerType == "" || FrequentFlyerNumber == "")
  27.             {
  28.                 ResultCode = 0;
  29.             }
  30.             else
  31.             {
  32.                 string click_ods_lc_members_id = Common1.getclick_ods_lc_members_id(memnum);
  33.  
  34.                 string InsertSql = "WS_MemberFrequentFlyerInsertUpdate @click_ods_lc_members_id = " + click_ods_lc_members_id + ",  @LC_Membership_Number =" + memnum + ", @global_preference_id = " + FrequentFlyerType + ", @Frequent_Flyer_Number = " + Common1.Quotes(FrequentFlyerNumber);
  35.                 Common1.QuickUpdate(InsertSql);
  36.                 ResultCode = 1;
  37.             }
  38.         }        
  39.     }
  40. }
RAW Paste Data
Challenge yourself this year...
Learn something new in 2017
Top