private void SetValue() { _objVisitRequest = new VisitRequest(); _objVisitRequestBiz = new VisitRequestBiz(); _objVisitRequest = _objVisitRequestBiz.GetVisitRequestDetail(Convert.ToInt32(Request.QueryString["ReqId"]), Request.QueryString["lId"].Trim()); if (_objVisitRequest != null) { PropertyName = CommonBiz.GetSingleString("ams.Properties", "PropertyName", "PropertyId=" + _objVisitRequest.PropertyId); apartmentNo = CommonBiz.GetSingleString("ams.Apartment", "ApartmentNoOrName", "PropertyId=" + _objVisitRequest.PropertyId + " and ApartmentId=" + _objVisitRequest.ApartmentId); lblRequrstedBy.Text = string.IsNullOrEmpty(_objVisitRequest.ClientName) ? "Not Defined" : _objVisitRequest.ClientName; lblClientEmail.Text = string.IsNullOrEmpty(_objVisitRequest.ClientEmail) ? "Not Defined" : _objVisitRequest.ClientEmail; lblClientMobileNo.Text = string.IsNullOrEmpty(_objVisitRequest.ClientMobileNo) ? "Not Defined" : _objVisitRequest.ClientMobileNo; lblRequestedFor.Text = string.IsNullOrEmpty(PropertyName) ? "Not Defined" : PropertyName + " (" + apartmentNo + ")"; txtClientMessage.Text = _objVisitRequest.MessageToLandlord; ViewState["objVisitRequest"] = _objVisitRequest; } else { MessageBox("You already respond this Request!"); HtmlMeta meta = new HtmlMeta(); meta.HttpEquiv = "Refresh"; meta.Content = "3;url=WelcomeUI.aspx"; this.Page.Controls.Add(meta); } }
private void BindData() { //Bind GridViewCondition GridViewCondition.DataSource = FormFlowBiz.GetConditionSubList(ConditionId).OrderBy(cs => cs.CreateTime); GridViewCondition.DataBind(); //display RadioButtonListJoin if (GridViewCondition.Rows.Count == 0) { RadioButtonListJoin.Enabled = false; RadioButtonListJoin.SelectedIndex = -1; } else { RadioButtonListJoin.SelectedIndex = 0; RadioButtonListJoin.Enabled = true; } //Bind DropDownListField DataTable dt = CommonBiz.GetColumns(string.Format("tb_{0}", FormId)); DropDownListField.DataSource = dt; DropDownListField.DataTextField = "name"; DropDownListField.DataValueField = "name"; DropDownListField.DataBind(); }
public static List <StaticListItem> GetApartmentVacanyStatus() { try { return(CommonBiz.GetCombo("amsSys.uspApartmentVacanyStatus")); } catch (Exception ex) { throw new Exception(ex.Message); } }
public static List <StaticListItem> GetFloorType() { try { return(CommonBiz.GetCombo("ams.uspGetFloorType")); } catch (Exception ex) { throw new Exception(ex.Message); } }
public static List <StaticListItem> GetPropertyFacilityType() { try { return(CommonBiz.GetCheckBoxList("ams.uspGetPropertyFacilityType")); } catch (Exception ex) { throw new Exception(ex.Message); } }
public CommonBizFacade(SysEnvironmentSerialize _envirObj) { string _currlang = _envirObj.I18nCurrLang; try { this.comBize = this.comBizeF.Create("one", _envirObj); } catch (Exception ex) { err = ex.ToString(); } }
public static List <StaticListItem> GetApartmentVacanyStatus(int apartmentStatusId) { try { Dictionary <string, object> p = new Dictionary <string, object>(); p.Add("ApartmentStatusId", apartmentStatusId); return(CommonBiz.GetCombo("amsSys.uspApartmentVacanyStatus", p)); } catch (Exception ex) { throw new Exception(ex.Message); } }
public async Task <IActionResult> SearchDoctorAsync([FromBody] SearchDoctorRequestDto request) { CommonBiz commonBiz = new CommonBiz(); if (!string.IsNullOrEmpty(UserID)) { commonBiz.SearchHistory(UserID, request.Keyword); } commonBiz.HotWordSearch(request.Keyword); var response = await new DoctorBiz().SearchDoctorAsync(request); return(Success(response)); }
public static List <StaticListItem> GetFloorType(int floorTypeId) { try { Dictionary <string, object> p = new Dictionary <string, object>(); p.Add("FloorTypeId", floorTypeId); return(CommonBiz.GetCombo("ams.uspGetFloorType", p)); } catch (Exception ex) { throw new Exception(ex.Message); } }
public static List <StaticListItem> GetPropertyFacilityType(int facilityId) { try { Dictionary <string, object> p = new Dictionary <string, object>(); p.Add("FacilityId", facilityId); return(CommonBiz.GetCheckBoxList("ams.uspGetPropertyFacilityType", p)); } catch (Exception ex) { throw new Exception(ex.Message); } }
//public static List<StaticListItem> GetPropertyFacilityType() //{ // try // { // return CommonBiz.GetCheckBoxList("ams.uspGetPropertyFacilityType"); // } // catch (Exception ex) // { // throw new Exception(ex.Message); // } //} public static List <StaticListItem> GetApartmentDetailByPeopertyId(int propertyId) { try { Dictionary <string, object> p = new Dictionary <string, object>(); p.Add("PropertyId", propertyId); return(CommonBiz.GetCombo("ams.uspGetApartmentDetailByPeopertyId", p)); } catch (Exception ex) { throw new Exception(ex.Message); } }
public static object GetUserWisePropertyList(string landloadId) { try { Dictionary <string, object> p = new Dictionary <string, object>(); p.Add("LandloadId", landloadId); return(CommonBiz.GetCombo("ams.uspGetUserWisePropertyList", p)); } catch (Exception ex) { throw new Exception(ex.Message); } }
private int SendRequestToSave() { try { _objUser = new UserDetail(); int result = 0; _objUser.Email = txtEmail.Text.Trim(); _objUser.MobileNo = txtMobileNo.Text.Trim(); _objUser.FirstName = txtFirstName.Text.Trim(); _objUser.LastName = txtLastName.Text.Trim(); _objUser.Password = CommonBiz.GetSwcSH1(txtPassword.Text.Trim()); //Password encrypted by SHA1 algorithm _objUser.RoleTypeID = Convert.ToChar(ddlAccountType.SelectedValue); _objUser.Status = false; result = _objUserBiz.Save(_objUser); if (result == 1 && (!string.IsNullOrEmpty(_objUser.Email) || !string.IsNullOrWhiteSpace(_objUser.Email))) { _objMessages = new NotificationMessages(); _objMessages.ClassificationID = 1; _objMessages.NotificationTypeID = 1; string path = Request.Url.Scheme + "://" + Request.Url.Authority + Request.ApplicationPath.TrimEnd('/') + "/" + "UserActivationByEmail.aspx?email=" + _objUser.Email;//Request.Url.GetLeftPart(UriPartial.Authority); _objNotificationBiz = new NotificationBiz(); string body = "Hello " + _objUser.FirstName + ","; body += "<br /><br />Please click the following link to activate your account"; body += "<br /> <a href='" + path + "' >Click here to activate your account. </a> <br /><br />Thanks"; _objNotificationBiz.SendEmail(_objMessages, _objUser.Email, body); succesMessage = "Signup Successful"; } else if (result == 2) { succesMessage = "User already Exists!"; } else { succesMessage = "Registration Failed"; } return(result); } catch (Exception exception) { MessageBox(exception.Message); return(0); } }
protected void Page_Load(object sender, EventArgs e) { try { string formKind = CommonBiz.CreateFormId(); //Return Response.ContentType = "text/html"; Response.Write(formKind); Response.End(); } catch (Exception ex) { SimpleFlow.SystemFramework.Log.WriteLog("FlowDesign_CreateFormKind ", ex); } }
private UserDetail GetLoginDetail() { _objAnUser = new User(); try { GetUserIdFromEmailOrMobileNo(); _objAnUser.Email = emailAsUserId; _objAnUser.MobileNo = mobileNoAsUserId; _objAnUser.Password = CommonBiz.GetSwcSH1(txtPassword.Text.Trim()); return(_objUserDtl = _objUserBiz.GetUserBasicInfo(_objAnUser)); } catch (Exception ex) { throw ex; } }
public async Task <IActionResult> SearchHospitalAsync([FromBody] SearchHospitalRequestDto request) { CommonBiz commonBiz = new CommonBiz(); if (!string.IsNullOrEmpty(UserID)) { commonBiz.SearchHistory(UserID, request.Keyword); } commonBiz.HotWordSearch(request.Keyword); var response = await new HospitalBiz().SearchHospitalAsync(request); foreach (var item in response.CurrentPage) { item.HosLevel = GetHosLevelName(item.HosLevel); } return(Success(response)); }
private void GetUserIdFromEmailOrMobileNo() { var userId = txtUserId.Text.Trim(); bool isEmail, isNumber; isEmail = CommonBiz.IsValidEmail(userId); isNumber = CommonBiz.IsNumeric(userId); if (isEmail) { emailAsUserId = userId; } if (isNumber) { mobileNoAsUserId = userId; } }
internal List <PharmaBusinessObjects.Master.AccountLedgerMaster> GetAccountLedgerByLedgerTypeIdAndSearch(int ledgerTypeID, string searchString = null) { CommonDao commonDao = new CommonDao(); var accountLedgerMasterList = new AccountLedgerMasterDao(this.LoggedInUser).GetAccountLedgerByLedgerTypeIdAndSearch(ledgerTypeID, searchString); var accountLedgerTypeList = commonDao.GetAccountLedgerTypes() ?? new List <PharmaBusinessObjects.Common.AccountLedgerType>(); var AccountTypeList = new CommonBiz().GetAccountTypes() ?? new List <PharmaBusinessObjects.Common.AccountType>(); var creditControlCodeList = commonDao.GetAccountLedgerTypes().Where(p => p.AccountLedgerTypeSystemName == "ControlCodes").ToList() ?? new List <PharmaBusinessObjects.Common.AccountLedgerType>(); var debitControlCodeList = commonDao.GetAccountLedgerTypes().Where(p => p.AccountLedgerTypeSystemName == "ControlCodes").ToList() ?? new List <PharmaBusinessObjects.Common.AccountLedgerType>(); foreach (var accountLedger in accountLedgerMasterList) { accountLedger.AccountLedgerTypeList = accountLedgerTypeList ?? new List <PharmaBusinessObjects.Common.AccountLedgerType>(); accountLedger.AccountTypeList = AccountTypeList ?? new List <PharmaBusinessObjects.Common.AccountType>(); accountLedger.CreditControlCodeList = creditControlCodeList ?? new List <PharmaBusinessObjects.Common.AccountLedgerType>(); accountLedger.DebitControlCodeList = debitControlCodeList ?? new List <PharmaBusinessObjects.Common.AccountLedgerType>(); } return(accountLedgerMasterList); }
protected void GridViewCondition_RowEditing(Object sender, GridViewEditEventArgs e) { GridViewCondition.EditIndex = e.NewEditIndex; BindData(); //Field DropDownList DropDownListField = (DropDownList)GridViewCondition.Rows[e.NewEditIndex].FindControl("DropDownListField"); Label LabelField = (Label)GridViewCondition.Rows[e.NewEditIndex].FindControl("LabelField"); DataTable dt = CommonBiz.GetColumns(string.Format("tb_{0}", FormId)); DropDownListField.DataSource = dt; DropDownListField.DataTextField = "name"; DropDownListField.DataValueField = "name"; DropDownListField.DataBind(); MatchDropByValue(DropDownListField, LabelField.Text); //Operator DropDownList DropDownListOperator = (DropDownList)GridViewCondition.Rows[e.NewEditIndex].FindControl("DropDownListOperator"); Label LabelOperator = (Label)GridViewCondition.Rows[e.NewEditIndex].FindControl("LabelOperator"); MatchDropByValue(DropDownListOperator, LabelOperator.Text); }
private int SendRequestToUpdate(string email) { try { _objUser = new UserDetail(); int result = 0; _objUser.Password = CommonBiz.GetSwcSH1(txtPassword.Text.Trim()); //Password encrypted by SHA1 algorithm _objUser.Email = email; _objUser.Status = false; result = _objUserBiz.ResetPassword(_objUser); return(result); } catch (Exception exception) { MessageBox(exception.Message); return(0); } }
/// <summary> /// 根据参数编号活的参数值 /// </summary> /// <param name="ParmCode">参数编号</param> /// <returns></returns> public string GetSysParaValue(string ParmCode) { return(CommonBiz.GetSysParaValue(ParmCode)); }
public static DataSet GetNumbers() { return(CommonBiz.GetNumbers()); }
/// <summary> /// 根据编号获得相应子项 /// </summary> /// <param name="SetCode">编号</param> /// <returns></returns> public DataSet GetItemsBySetCode(string[] SetCode) { return(CommonBiz.GetItemsBySetCode(SetCode)); }
/// <summary> /// 2012-4-23 심민섭 수정.(TA의 eBay 아이디가 없을시 유효성 처리) /// </summary> /// <param name="taId"></param> /// <param name="latest"></param> /// <returns></returns> public Dictionary<string, long> GeteBayReturnCount(string taId, int latest) { Dictionary<string, long> result = new Dictionary<string, long>(); DateTime startDate = DateTime.Parse(DateTime.Now.AddDays(-(latest - 1)).ToString("yyyy-MM-dd")); //TA 의 eBay 계정 가져오기 List<TaAccounts> taAccounts = new CommonBiz().GetTaeBayAccount(taId); if (taAccounts != null) { foreach (TaAccounts t in taAccounts) { IMongoQuery query = Query.And(Query.EQ("Order.SellerId", t.site_login_id) // 상태가 SC, CR인 건 만 조회 (취소/반품만 조회) , Query.In("Status", BsonArray.Create(new string[] { EnumHelper.GetDBCode(GepOrderStatus.Cancel).ToString(), EnumHelper.GetDBCode(GepOrderStatus.Returned).ToString() })) , Query.EQ("DisputeRecordType", EnumHelper.GetDBCode(DisputeRecordTypeEnum.Return).ToString()) , Query.GTE("DisputeCreateDt", startDate.ToLocalTime())); result[t.site_login_id] = new eBayOrderDac().GeteBayCancelCount(query); } } return result; }
/// <summary> /// 2012-4-23 심민섭 수정.(TA의 eBay 아이디가 없을시 유효성 처리) /// </summary> /// <param name="taId"></param> /// <param name="latest"></param> /// <returns></returns> public long GeteBayUnPaymentOrderCount(string taId, int latest) { DateTime startDate = DateTime.Parse(DateTime.Now.AddDays(-(latest - 1)).ToString("yyyy-MM-dd")); //TA 의 eBay 계정 가져오기 List<TaAccounts> taAccounts = new CommonBiz().GetTaeBayAccount(taId); List<BsonValue> eBayIds = new List<BsonValue>(); if (taAccounts != null) { foreach (TaAccounts t in taAccounts) { eBayIds.Add(BsonValue.Create(t.site_login_id)); } IMongoQuery query = Query.And(Query.In("Order.SellerId", eBayIds) // 상태가 SE인 건 만 조회 (취소/반품 조회하지 않음) , Query.EQ("Status", EnumHelper.GetDBCode(GepOrderStatus.Conclusion).ToString()) , Query.EQ("Order.PaymentStatus", EnumHelper.GetDBCode(EBayPaymentStatusEnum.Unpayment).ToString()) , Query.GTE("Order.OrderDt", startDate.ToLocalTime())); return new eBayOrderDac().GeteBayOrderCount(query); } else { return 0; } }
protected void btnSendVisitReq_Click(object sender, EventArgs e) { string landloardEmail; int result = 0, VisitReqId; bool isAlreadyRequestedForVisit; _objVisitRequestBiz = new VisitRequestBiz(); if (Request.QueryString["lId"] != null && Request.QueryString["apId"] != null && Request.QueryString["ppId"] != null) { _objVisitRequest = new VisitRequest(); landloardEmail = GetLandloardEmail(Request.QueryString["lId"]); _objVisitRequest.PropertyId = Convert.ToInt32(Request.QueryString["ppId"]); _objVisitRequest.LandlordId = Request.QueryString["lId"].Trim(); _objVisitRequest.ApartmentId = Convert.ToInt32(Request.QueryString["apId"]); _objVisitRequest.ClientEmail = txtClientEmail.Text.Trim(); _objVisitRequest.ClientMobileNo = txtClientMobileNo.Text.Trim(); _objVisitRequest.ClientName = txtClientName.Text.Trim(); _objVisitRequest.MessageToLandlord = txtVisitReqMessage.Text.Trim(); _objVisitRequest.RequestDate = DateTime.Today; isAlreadyRequestedForVisit = _objVisitRequestBiz.GetIsAlreadyRequestedForVisit(_objVisitRequest); if (!isAlreadyRequestedForVisit) { result = _objVisitRequestBiz.SaveVisitRequest(_objVisitRequest, out VisitReqId); if (result > 0) { string PropertyName, apartmentNo; PropertyName = CommonBiz.GetSingleString("ams.Properties", "PropertyName", "PropertyId=" + _objVisitRequest.PropertyId); apartmentNo = CommonBiz.GetSingleString("ams.Apartment", "ApartmentNoOrName", "PropertyId=" + _objVisitRequest.PropertyId + " and ApartmentId=" + _objVisitRequest.ApartmentId); _objMessages = new NotificationMessages(); _objMessages.ClassificationID = 4; _objMessages.NotificationTypeID = 1; string path = Request.Url.Scheme + "://" + Request.Url.Authority + Request.ApplicationPath.TrimEnd('/') + "/" + "UserUI/ResponseVisitRequest.aspx"; //Request.Url.GetLeftPart(UriPartial.Authority); _objNotificationBiz = new NotificationBiz(); objUser = (UserDetail)ViewState["UserDetailVwState"]; string body = "Hello <br/> " + objUser.FullName + ","; body += "<br /><br /> " + _objVisitRequest.ClientName + " wants to visit your apartment " + apartmentNo + " of " + PropertyName + "<br/>"; body += "<span style=\"font-size: 11pt;font-weight: bold\">Messege from Client:</span><br/>" + _objVisitRequest.MessageToLandlord + "<br/>"; body += "<br /> If you want to accept this visit Request please click <a href='" + path + "?isAccept=1&lId=" + _objVisitRequest.LandlordId + "&ReqId=" + VisitReqId + "' > accept </a> <br /><br /> Or To deny click <a href='" + path + "?isAccept=0&lId=" + _objVisitRequest.LandlordId + "&ReqId=" + VisitReqId + "'> deny </a> <br /><br />"; _objNotificationBiz.SendEmail(_objMessages, landloardEmail, body); ltrlEmailSmsNotification.Text = "<span style=\"color: green; font - size: 10pt \">Request Successful</span>"; } else { ltrlEmailSmsNotification.Text = "<span style=\"color: Red; font - size: 10pt \">Request Failed</span>"; } } else { ltrlEmailSmsNotification.Text = "<span style=\"color: Red; font - size: 10pt \">You have already a pending Request. Thanks..</span>"; } } else { MessageBox("Request Failed!"); } }