public void AddOrReplace(FieldOrPropertyMemberInfo memberInfo, object value) { var idxFound = _memberSetsRequests.FindIndex(item => item.MemberInfo.Equals(memberInfo)); if (idxFound == -1) { _memberSetsRequests.Add(new MemberSetRequest(memberInfo, value)); } else { _memberSetsRequests[idxFound] = new MemberSetRequest(memberInfo, value); } }
/// <summary> /// 申込データの入力 /// </summary> /// <param name="InData">登録データ</param> public void Insert(MemberSetRequest InData) { try { // Insertオーダーの作成 NEW_RECEIPT_LIST ord = new NEW_RECEIPT_LIST { LAST_NAME = InData.last_name, FIRT_NAME = InData.first_name, LAST_NAME_Y = InData.last_name_y, FIRT_NAME_Y = InData.first_name_y, ZIP_1 = InData.zip_1, ZIP_2 = InData.zip_2, PREF_NAME = InData.pref_nmae, AREA_NAME = InData.area_name, CITY_NAME = InData.city_name, BLOCK = InData.block, BUILDING = InData.building, TEL_NUMBER_1 = InData.tel_number_1, TEL_NUMBER_2 = InData.tel_number_2, TEL_NUMBER_3 = InData.tel_number_3, MOBILE_NUMBER_1 = InData.mobile_number_1, MOBILE_NUMBER_2 = InData.mobile_number_2, MOBILE_NUMBER_3 = InData.mobile_number_3, OTHER_NUMBER_1 = InData.other_tel_number_1, OTHER_NUMBER_2 = InData.other_tel_number_2, OTHER_NUMBER_3 = InData.other_tel_number_3, MAIL_ADDRESS = InData.mail_address, PASSWORD = InData.password, CALL_NAME = InData.call_name, MAILMAGA_DISABLE_FLG = InData.mailmaga_disable_flag, DM_DISABLE_FLG = InData.dm_disable_flag, SEX = (InData.sex == 2 ? "女" : "男"), BIRTH = InData.birth }; // Insert要求 DB.NEW_RECEIPT_LIST.InsertOnSubmit(ord); // コミット DB.SubmitChanges(); } catch { throw; } }
/// <summary> /// 新規遷移 /// </summary> public override void CreateView() { try { //-------------------------------------------------- // 前画面からデータ受取 //-------------------------------------------------- // 新規カード作成のため、カード情報を受け取って居ない場合、この画面へ来てはいけない if (this.ScreenData == null) { this.PageTop(); } // 前画面からデータの受取(新規入力のユーザーデータ) foreach (object data in this.ScreenData) { if (data.GetType() == typeof(MemberSetRequest)) { InData = (MemberSetRequest)data; } } //-------------------------------------------------- // カード機設定 //-------------------------------------------------- // カード機のイベント登録 CardMachineEventRegistration(); // カード状態監視の開始 CardMachine.MonitoringSwitch(true); //-------------------------------------------------- // カード機モードチェンジ //-------------------------------------------------- // カード機へ新規カード挿入モードにする RmSendRecCardParamClass RecCardParam = new RmSendRecCardParamClass { card = 2 }; CardMachine.CardMachineOrder(OrderCardMachineState.RmSendRecCard, RecCardParam); } catch { throw; } }
public MemberSetResponse PointCard_MemberSet(MemberSetRequest req) { MemberSetResponse ret = null; try { MemberSetClass item = new MemberSetClass(httpClient) { Req = req }; item.Communication(); ret = (MemberSetResponse)item.Res; } catch { throw; } return(ret); }
/// <summary> /// 新規遷移 /// </summary> public override void CreateView() { try { //-------------------------------------------------- // 前画面からデータ受取 //-------------------------------------------------- // 新規カード作成のため、カード情報を受け取って居ない場合、この画面へ来てはいけない if (this.ScreenData == null) this.PageTop(); // 前画面からデータの受取(新規入力のユーザーデータ) foreach (object data in this.ScreenData) { if (data.GetType() == typeof(MemberSetRequest)) { InData = (MemberSetRequest)data; } } //-------------------------------------------------- // カード機設定 //-------------------------------------------------- // カード機のイベント登録 CardMachineEventRegistration(); // カード状態監視の開始 CardMachine.MonitoringSwitch(true); //-------------------------------------------------- // カード発行処理開始 //-------------------------------------------------- CreateCard_Step01(); } catch { throw; } }
/// <summary> /// 新規遷移 /// </summary> public override void CreateView() { try { if (this.ScreenData != null) { foreach (object data in this.ScreenData) { if (data.GetType() == typeof(MemberSetRequest)) { InData = (MemberSetRequest)data; } } } else { InData = new MemberSetRequest(); } } catch { throw; } }