public static async Task <ReturnedSaveFuncInfo> SaveFromServerAsync() { var res = new ReturnedSaveFuncInfo(); SqlConnection cn = null; SqlTransaction tr = null; try { cn = new SqlConnection(Cache.ConnectionString); var list = await WebCalendar.GetAllAsync(); res.AddReturnedValue(list); if (res.HasError) { return(res); } if (list.value == null || list.value.Count <= 0) { return(res); } await cn.OpenAsync(); tr = cn.BeginTransaction(); var listBus = new List <CalendarBussines>(); foreach (var item in list.value) { listBus.Add(new CalendarBussines() { Guid = Guid.NewGuid(), Modified = DateTime.Now, Description = item.Description, DateM = item.DateM, Monasebat = item.Monasebat, isTatil = item.STRasmi }); } res.AddReturnedValue(await RemoveAllAsync(tr)); if (res.HasError) { return(res); } res.AddReturnedValue(await SaveRangeAsync(listBus, tr)); } catch (Exception ex) { WebErrorLog.ErrorInstence.StartErrorLog(ex); res.AddReturnedValue(ex); } finally { res.AddReturnedValue(tr.TransactionDestiny(res.HasError)); res.AddReturnedValue(cn.CloseConnection()); } return(res); }
protected override void AttachChildControls() { this.txtRealName = (System.Web.UI.WebControls.TextBox) this.FindControl("txtRealName"); this.txtEmail = (System.Web.UI.WebControls.TextBox) this.FindControl("txtEmail"); this.dropRegionsSelect = (RegionSelector)this.FindControl("dropRegions"); this.gender = (GenderRadioButtonList)this.FindControl("gender"); this.calendDate = (WebCalendar)this.FindControl("calendDate"); this.txtAddress = (System.Web.UI.WebControls.TextBox) this.FindControl("txtAddress"); this.txtQQ = (System.Web.UI.WebControls.TextBox) this.FindControl("txtQQ"); this.txtMSN = (System.Web.UI.WebControls.TextBox) this.FindControl("txtMSN"); this.txtTel = (System.Web.UI.WebControls.TextBox) this.FindControl("txtTel"); this.txtHandSet = (System.Web.UI.WebControls.TextBox) this.FindControl("txtHandSet"); this.btnOK1 = ButtonManager.Create(this.FindControl("btnOK1")); this.Statuses = (SmallStatusMessage)this.FindControl("Statuses"); this.btnOK1.Click += new System.EventHandler(this.btnOK1_Click); PageTitle.AddSiteNameTitle("个人信息", HiContext.Current.Context); if (!this.Page.IsPostBack) { Member member = HiContext.Current.User as Member; if (member != null) { this.BindData(member); } } }
protected override void AttachChildControls() { this.txtRealName = (TextBox) this.FindControl("txtRealName"); this.txtEmail = (TextBox) this.FindControl("txtEmail"); this.dropRegionsSelect = (RegionSelector) this.FindControl("dropRegions"); this.gender = (GenderRadioButtonList) this.FindControl("gender"); this.calendDate = (WebCalendar) this.FindControl("calendDate"); this.txtAddress = (TextBox) this.FindControl("txtAddress"); this.txtQQ = (TextBox) this.FindControl("txtQQ"); this.txtMSN = (TextBox) this.FindControl("txtMSN"); this.txtTel = (TextBox) this.FindControl("txtTel"); this.txtHandSet = (TextBox) this.FindControl("txtHandSet"); this.btnOK1 = ButtonManager.Create(this.FindControl("btnOK1")); this.Statuses = (SmallStatusMessage) this.FindControl("Statuses"); this.btnOK1.Click += new EventHandler(this.btnOK1_Click); PageTitle.AddSiteNameTitle("个人信息", HiContext.Current.Context); if (!this.Page.IsPostBack) { Member user = HiContext.Current.User as Member; if (user != null) { this.BindData(user); } } }
protected override void AttachChildControls() { this.accountList = (Common_Advance_AccountList)this.FindControl("Common_Advance_AccountList"); this.pager = (Pager)this.FindControl("pager"); this.calendarStart = (WebCalendar)this.FindControl("calendarStart"); this.calendarEnd = (WebCalendar)this.FindControl("calendarEnd"); this.dropTradeType = (TradeTypeDropDownList)this.FindControl("dropTradeType"); this.imgbtnSearch = (System.Web.UI.WebControls.ImageButton) this.FindControl("imgbtnSearch"); this.litAccountAmount = (FormatedMoneyLabel)this.FindControl("litAccountAmount"); this.litRequestBalance = (FormatedMoneyLabel)this.FindControl("litRequestBalance"); this.litUseableBalance = (FormatedMoneyLabel)this.FindControl("litUseableBalance"); this.imgbtnSearch.Click += new System.Web.UI.ImageClickEventHandler(this.imgbtnSearch_Click); PageTitle.AddSiteNameTitle("预付款账户"); if (!this.Page.IsPostBack) { Member member = Users.GetUser(HiContext.Current.User.UserId, false) as Member; if (!member.IsOpenBalance) { this.Page.Response.Redirect(Globals.ApplicationPath + string.Format("/user/OpenBalance.aspx?ReturnUrl={0}", System.Web.HttpContext.Current.Request.Url)); } this.BindBalanceDetails(); this.litAccountAmount.Money = member.Balance; this.litRequestBalance.Money = member.RequestBalance; this.litUseableBalance.Money = member.Balance - member.RequestBalance; } }
// Token: 0x060007FC RID: 2044 RVA: 0x00039774 File Offset: 0x00037974 static SynchronizableFolderType() { SynchronizableFolderType.Register(new ConsumerSharingCalendarType()); SynchronizableFolderType.Register(new ExternalSharingCalendarType()); SynchronizableFolderType.Register(new InternetCalendarType()); SynchronizableFolderType.Register(new ExternalSharingContactsType()); WebCalendar.RegisterPrefixes(); }
protected override void AttachChildControls() { this.accountList = (Common_Advance_AccountList)this.FindControl("Common_Advance_AccountList"); this.pager = (Pager)this.FindControl("pager"); this.calendarStart = (WebCalendar)this.FindControl("calendarStart"); this.calendarEnd = (WebCalendar)this.FindControl("calendarEnd"); this.dropTradeType = (TradeTypeDropDownList)this.FindControl("dropTradeType"); this.btnSearchBalanceDetails = ButtonManager.Create(this.FindControl("btnSearchBalanceDetails")); PageTitle.AddSiteNameTitle("帐户明细", HiContext.Current.Context); this.btnSearchBalanceDetails.Click += new EventHandler(this.btnSearchBalanceDetails_Click); if (!this.Page.IsPostBack) { Member user = Users.GetUser(HiContext.Current.User.UserId, false) as Member; if (!user.IsOpenBalance) { this.Page.Response.Redirect(Globals.ApplicationPath + string.Format("/user/OpenBalance.aspx?ReturnUrl={0}", HttpContext.Current.Request.Url)); } this.BindBalanceDetails(); } }
protected override void AttachChildControls() { this.calendarStartDate = (WebCalendar) this.FindControl("calendarStartDate"); this.calendarEndDate = (WebCalendar) this.FindControl("calendarEndDate"); this.txtOrderId = (TextBox) this.FindControl("txtOrderId"); this.dropOrderStatus = (OrderStautsDropDownList) this.FindControl("dropOrderStatus"); this.btnSearch = ButtonManager.Create(this.FindControl("btnSearch")); this.litOrderTotal = (Literal) this.FindControl("litOrderTotal"); this.listOrders = (Common_OrderManage_OrderList) this.FindControl("Common_OrderManage_OrderList"); this.pager = (Pager) this.FindControl("pager"); this.btnSearch.Click += new EventHandler(this.lbtnSearch_Click); this.listOrders.ItemDataBound += new Common_OrderManage_OrderList.DataBindEventHandler(this.listOrders_ItemDataBound); this.listOrders.ItemCommand += new Common_OrderManage_OrderList.CommandEventHandler(this.listOrders_ItemCommand); this.listOrders.ReBindData += new Common_OrderManage_OrderList.ReBindDataEventHandler(this.listOrders_ReBindData); PageTitle.AddSiteNameTitle("我的订单", HiContext.Current.Context); if (!this.Page.IsPostBack) { this.BindOrders(); } }
protected override void AttachChildControls() { this.accountList = (Common_Advance_AccountList) this.FindControl("Common_Advance_AccountList"); this.pager = (Pager) this.FindControl("pager"); this.calendarStart = (WebCalendar) this.FindControl("calendarStart"); this.calendarEnd = (WebCalendar) this.FindControl("calendarEnd"); this.dropTradeType = (TradeTypeDropDownList) this.FindControl("dropTradeType"); this.btnSearchBalanceDetails = ButtonManager.Create(this.FindControl("btnSearchBalanceDetails")); PageTitle.AddSiteNameTitle("帐户明细", HiContext.Current.Context); this.btnSearchBalanceDetails.Click += new EventHandler(this.btnSearchBalanceDetails_Click); if (!this.Page.IsPostBack) { Member user = Users.GetUser(HiContext.Current.User.UserId, false) as Member; if (!user.IsOpenBalance) { this.Page.Response.Redirect(Globals.ApplicationPath + string.Format("/user/OpenBalance.aspx?ReturnUrl={0}", HttpContext.Current.Request.Url)); } this.BindBalanceDetails(); } }
protected override void AttachChildControls() { this.calendarStartDate = (WebCalendar)this.FindControl("calendarStartDate"); this.calendarEndDate = (WebCalendar)this.FindControl("calendarEndDate"); this.txtOrderId = (TextBox)this.FindControl("txtOrderId"); this.dropOrderStatus = (OrderStautsDropDownList)this.FindControl("dropOrderStatus"); this.btnSearch = ButtonManager.Create(this.FindControl("btnSearch")); this.litOrderTotal = (Literal)this.FindControl("litOrderTotal"); this.listOrders = (Common_OrderManage_OrderList)this.FindControl("Common_OrderManage_OrderList"); this.pager = (Pager)this.FindControl("pager"); this.btnSearch.Click += new EventHandler(this.lbtnSearch_Click); this.listOrders.ItemDataBound += new Common_OrderManage_OrderList.DataBindEventHandler(this.listOrders_ItemDataBound); this.listOrders.ItemCommand += new Common_OrderManage_OrderList.CommandEventHandler(this.listOrders_ItemCommand); this.listOrders.ReBindData += new Common_OrderManage_OrderList.ReBindDataEventHandler(this.listOrders_ReBindData); PageTitle.AddSiteNameTitle("我的订单", HiContext.Current.Context); if (!this.Page.IsPostBack) { this.BindOrders(); } }
protected override void AttachChildControls() { this.calendarStartDate = (WebCalendar)this.FindControl("calendarStartDate"); this.calendarEndDate = (WebCalendar)this.FindControl("calendarEndDate"); this.hdorderId = (HtmlInputHidden)this.FindControl("hdorderId"); this.txtOrderId = (TextBox)this.FindControl("txtOrderId"); this.txtShipId = (TextBox)this.FindControl("txtShipId"); this.txtShipTo = (TextBox)this.FindControl("txtShipTo"); this.txtRemark = (TextBox)this.FindControl("txtRemark"); this.txtReturnRemark = (TextBox)this.FindControl("txtReturnRemark"); this.txtReplaceRemark = (TextBox)this.FindControl("txtReplaceRemark"); this.dropOrderStatus = (OrderStautsDropDownList)this.FindControl("dropOrderStatus"); this.dropPayType = (DropDownList)this.FindControl("dropPayType"); this.btnPay = ButtonManager.Create(this.FindControl("btnPay")); this.btnSearch = ButtonManager.Create(this.FindControl("btnSearch")); this.btnOk = ButtonManager.Create(this.FindControl("btnOk")); this.btnReturn = ButtonManager.Create(this.FindControl("btnReturn")); this.btnReplace = ButtonManager.Create(this.FindControl("btnReplace")); this.litOrderTotal = (Literal)this.FindControl("litOrderTotal"); this.dropRefundType = (DropDownList)this.FindControl("dropRefundType"); this.dropReturnRefundType = (DropDownList)this.FindControl("dropReturnRefundType"); this.listOrders = (Common_OrderManage_OrderList)this.FindControl("Common_OrderManage_OrderList"); this.pager = (Pager)this.FindControl("pager"); this.btnSearch.Click += new EventHandler(this.lbtnSearch_Click); this.btnPay.Click += new EventHandler(this.btnPay_Click); this.btnOk.Click += new EventHandler(this.btnOk_Click); this.btnReturn.Click += new EventHandler(this.btnReturn_Click); this.btnReplace.Click += new EventHandler(this.btnReplace_Click); this.listOrders._ItemDataBound += new Common_OrderManage_OrderList.DataBindEventHandler(this.listOrders_ItemDataBound); this.listOrders._ItemCommand += new Common_OrderManage_OrderList.CommandEventHandler(this.listOrders_ItemCommand); this.listOrders._ReBindData += new Common_OrderManage_OrderList.ReBindDataEventHandler(this.listOrders_ReBindData); PageTitle.AddSiteNameTitle("我的订单", HiContext.Current.Context); if (!this.Page.IsPostBack) { this.dropPayType.DataSource = TradeHelper.GetPaymentModes(); this.dropPayType.DataTextField = "Name"; this.dropPayType.DataValueField = "ModeId"; this.dropPayType.DataBind(); this.BindOrders(); } }
public void SubscribeToInternetCalendar() { string iCalUrlString = (string)base.GetParameter("iCalUrl"); try { SubscribeResultsWebCal subscribeResultsWebCal = WebCalendar.Subscribe(base.UserContext.MailboxSession, iCalUrlString, null); OwaStoreObjectId newFolderId = OwaStoreObjectId.CreateFromMailboxFolderId(subscribeResultsWebCal.LocalFolderId); NavigationHost.RenderFavoritesAndNavigationTrees(this.Writer, base.UserContext, newFolderId, new NavigationNodeGroupSection[] { NavigationNodeGroupSection.Calendar }); } catch (InvalidSharingDataException) { this.SanitizingWriter.Write("<div id=\"err\" _msg=\"badUri\"></div>"); } catch (NotSupportedWithMailboxVersionException) { throw new OwaInvalidRequestException("Your account isn't set up to allow calendars to be added from the Internet."); } }
private void AAbiuZJB(int num) { IList <ActivitiesInfo> activitiesInfo = VShopHelper.GetActivitiesInfo(num.ToString()); if (activitiesInfo.Count > 0) { this.txtName.Text = activitiesInfo[0].ActivitiesName; this.txtDescription.Text = activitiesInfo[0].ActivitiesDescription; WebCalendar str = this.txtEndDate; DateTime endTIme = activitiesInfo[0].EndTIme; str.Text = endTIme.ToString("yyyy-MM-dd"); WebCalendar webCalendar = this.txtStartDate; DateTime startTime = activitiesInfo[0].StartTime; webCalendar.Text = startTime.ToString("yyyy-MM-dd"); TextBox textBox = this.txtMeetMoney; decimal meetMoney = activitiesInfo[0].MeetMoney; textBox.Text = meetMoney.ToString("0.00"); TextBox str1 = this.txtReductionMoney; decimal reductionMoney = activitiesInfo[0].ReductionMoney; str1.Text = reductionMoney.ToString("0.00"); this.dropCategories.SelectedValue = new int?(activitiesInfo[0].ActivitiesType); } }
protected override void AttachChildControls() { this.rptReferralSplitin = (Common_Referral_Splitin)this.FindControl("Common_Referral_Splitin"); this.pager = (Pager)this.FindControl("pager"); this.calendarStart = (WebCalendar)this.FindControl("calendarStart"); this.calendarEnd = (WebCalendar)this.FindControl("calendarEnd"); this.dropSplittingType = (System.Web.UI.WebControls.DropDownList) this.FindControl("dropSplittingType"); this.dropUseStatus = (System.Web.UI.WebControls.DropDownList) this.FindControl("dropUseStatus"); this.imgbtnSearch = (System.Web.UI.WebControls.ImageButton) this.FindControl("imgbtnSearch"); this.litAllSplittin = (FormatedMoneyLabel)this.FindControl("litAllSplittin"); this.litUseSplittin = (FormatedMoneyLabel)this.FindControl("litUseSplittin"); this.litNoUseSplittin = (FormatedMoneyLabel)this.FindControl("litNoUseSplittin"); this.txtOrderId = (System.Web.UI.WebControls.TextBox) this.FindControl("txtOrderId"); this.imgbtnSearch.Click += new System.Web.UI.ImageClickEventHandler(this.imgbtnSearch_Click); PageTitle.AddSiteNameTitle("我的佣金"); if (!this.Page.IsPostBack) { this.BindSplittins(); int userId = HiContext.Current.User.UserId; this.litAllSplittin.Money = MemberProcessor.GetUserAllSplittin(userId); this.litUseSplittin.Money = MemberProcessor.GetUserUseSplittin(userId); this.litNoUseSplittin.Money = MemberProcessor.GetUserNoUseSplittin(userId); } }
protected override void AttachChildControls() { this.calendarStartDate = (WebCalendar)this.FindControl("calendarStartDate"); this.calendarEndDate = (WebCalendar)this.FindControl("calendarEndDate"); this.hdorderId = (System.Web.UI.HtmlControls.HtmlInputHidden) this.FindControl("hdorderId"); this.txtOrderId = (System.Web.UI.WebControls.TextBox) this.FindControl("txtOrderId"); this.txtProductName = (System.Web.UI.WebControls.TextBox) this.FindControl("txtProductName"); this.txtShipId = (System.Web.UI.WebControls.TextBox) this.FindControl("txtShipId"); this.txtShipTo = (System.Web.UI.WebControls.TextBox) this.FindControl("txtShipTo"); this.txtCellPhone = (System.Web.UI.WebControls.TextBox) this.FindControl("txtCellPhone"); this.txtRemark = (System.Web.UI.WebControls.TextBox) this.FindControl("txtRemark"); this.txtReturnRemark = (System.Web.UI.WebControls.TextBox) this.FindControl("txtReturnRemark"); this.txtReplaceRemark = (System.Web.UI.WebControls.TextBox) this.FindControl("txtReplaceRemark"); this.dropOrderStatus = (OrderStautsDropDownList)this.FindControl("dropOrderStatus"); this.dropPayType = (System.Web.UI.WebControls.DropDownList) this.FindControl("dropPayType"); this.btnPay = ButtonManager.Create(this.FindControl("btnPay")); this.imgbtnSearch = (System.Web.UI.WebControls.ImageButton) this.FindControl("imgbtnSearch"); this.btnOk = ButtonManager.Create(this.FindControl("btnOk")); this.btnReturn = ButtonManager.Create(this.FindControl("btnReturn")); this.btnReplace = ButtonManager.Create(this.FindControl("btnReplace")); this.litOrderTotal = (System.Web.UI.WebControls.Literal) this.FindControl("litOrderTotal"); this.dropRefundType = (System.Web.UI.WebControls.DropDownList) this.FindControl("dropRefundType"); this.dropRefundReason = (System.Web.UI.WebControls.DropDownList) this.FindControl("dropRefundReason"); this.dropReturnReason = (System.Web.UI.WebControls.DropDownList) this.FindControl("dropReturnReason"); this.dropReturnRefundType = (System.Web.UI.WebControls.DropDownList) this.FindControl("dropReturnRefundType"); this.listOrders = (Common_OrderManage_OrderList)this.FindControl("Common_OrderManage_OrderList"); this.pager = (Pager)this.FindControl("pager"); this.hlinkAllOrder = (System.Web.UI.WebControls.HyperLink) this.FindControl("hlinkAllOrder"); this.hlinkNotPay = (System.Web.UI.WebControls.HyperLink) this.FindControl("hlinkNotPay"); this.hlinkNotGetGoods = (System.Web.UI.WebControls.HyperLink) this.FindControl("hlinkNotGetGoods"); this.hlinkFinished = (System.Web.UI.WebControls.HyperLink) this.FindControl("hlinkFinished"); this.hlinkRefund = (System.Web.UI.WebControls.HyperLink) this.FindControl("hlinkRefund"); this.hlinkReturn = (System.Web.UI.WebControls.HyperLink) this.FindControl("hlinkReturn"); this.dropLogisticsCompany = (LogisticsCompanyDropDownList)this.FindControl("dropLogisticsCompany"); this.txtLogisticsId = (System.Web.UI.WebControls.TextBox) this.FindControl("txtLogisticsId"); this.quantityList = (System.Web.UI.HtmlControls.HtmlInputHidden) this.FindControl("quantityList"); this.skuIds = (System.Web.UI.HtmlControls.HtmlInputHidden) this.FindControl("skuIds"); this.LogisticsCompany = (System.Web.UI.HtmlControls.HtmlInputHidden) this.FindControl("LogisticsCompany"); this.LogisticsId = (System.Web.UI.HtmlControls.HtmlInputHidden) this.FindControl("LogisticsId"); this.imgbtnSearch.Click += new System.Web.UI.ImageClickEventHandler(this.imgbtnSearch_Click); this.btnPay.Click += new System.EventHandler(this.btnPay_Click); this.btnOk.Click += new System.EventHandler(this.btnOk_Click); this.btnReturn.Click += new System.EventHandler(this.btnReturn_Click); this.btnReplace.Click += new System.EventHandler(this.btnReplace_Click); this.listOrders.ItemDataBound += new Common_OrderManage_OrderList.DataBindEventHandler(this.listOrders_ItemDataBound); this.listOrders.ItemCommand += new Common_OrderManage_OrderList.CommandEventHandler(this.listOrders_ItemCommand); //this.rptOrderProducts = (VshopTemplatedRepeater)this.FindControl("rptOrderProducts"); //物流选择绑定值 //IList<string> list = ExpressHelper.GetAllExpressName(); //List<ListItem> item = new List<ListItem>(); //foreach (string s in list) //{ // item.Add(new ListItem(s, s)); //} //dropLogisticsCompany.Items.AddRange(item.ToArray()); PageTitle.AddSiteNameTitle("我的订单"); if (!this.Page.IsPostBack) { this.OrderRefundTime = string.IsNullOrEmpty(System.Configuration.ConfigurationManager.AppSettings["OrderRefunTime"]) ? 30 : int.Parse(System.Configuration.ConfigurationManager.AppSettings["OrderRefunTime"].ToString()); this.SetOrderStatusLink(); this.dropPayType.DataSource = TradeHelper.GetPaymentModes(PayApplicationType.payOnPC); this.dropPayType.DataTextField = "Name"; this.dropPayType.DataValueField = "ModeId"; this.dropPayType.DataBind(); this.BindOrders(); dropLogisticsCompany.DataBind(); BindRefundReason(); BindReturnReason(); } //this.rptOrderProducts.DataSource = ShoppingProcessor.GetOrderItems(orderId); //this.rptOrderProducts.DataBind(); }
protected WebEventData GetEventfromAppointment() { long folderid = 0; long eventid = 0; int langid = 0; bool isvariance = false; WebEventData eventdata = null; object apptid = (Appointment.ID == null) ? Appointment.RecurrenceParentID : Appointment.ID; if (Appointment.RecurrenceParentID != null) isvariance = true; if (apptid != null && apptid.ToString() != "" && EventRadScheduleProvider.EventInfo.ExtractContentID(apptid.ToString(), out folderid, out eventid, out langid)) { WebCalendar w = new WebCalendar(_contentApi.RequestInformationRef); w.RequestInformation.ContentLanguage = langid; if (isvariance) { WebEventVarianceDictionary dic = w.WebEventManager.GetVarianceEventList(folderid, eventid); if (dic != null && dic.ContainsKey(eventid)) { eventdata = dic[eventid].Find(delegate(WebEventData wed) { return wed.EventStart == Appointment.Start && wed.IsCancelled == false; }); } } if (eventdata == null) { eventdata = w.WebEventManager.GetItem(eventid, langid); } } return eventdata; }