Ejemplo n.º 1
0
 protected override void AttachChildControls()
 {
     this.accountList         = (Common_Advance_AccountList)this.FindControl("Common_Advance_AccountList");
     this.pager               = (Pager)this.FindControl("pager");
     this.calendarStart       = (CalendarPanel)this.FindControl("calendarStart");
     this.calendarEnd         = (CalendarPanel)this.FindControl("calendarEnd");
     this.dropTradeType       = (TradeTypeDropDownList)this.FindControl("dropTradeType");
     this.imgbtnSearch        = (Button)this.FindControl("imgbtnSearch");
     this.litAccountAmount    = (FormatedMoneyLabel)this.FindControl("litAccountAmount");
     this.litRequestBalance   = (FormatedMoneyLabel)this.FindControl("litRequestBalance");
     this.litUseableBalance   = (FormatedMoneyLabel)this.FindControl("litUseableBalance");
     this.spaccountamount     = (HtmlGenericControl)this.FindControl("spaccountamount");
     this.sprequestbalace     = (HtmlGenericControl)this.FindControl("sprequestbalace");
     this.link_balancedraw    = (HtmlAnchor)this.FindControl("link_balancedraw");
     this.imgbtnSearch.Click += this.imgbtnSearch_Click;
     PageTitle.AddSiteNameTitle("预付款账户");
     if (!this.Page.IsPostBack)
     {
         MemberInfo user = HiContext.Current.User;
         if (string.IsNullOrWhiteSpace(user.TradePassword))
         {
             this.Page.Response.Redirect($"/user/OpenBalance.aspx?ReturnUrl={HttpContext.Current.Request.Url}");
         }
         this.BindBalanceDetails();
         this.litAccountAmount.Money  = user.Balance;
         this.litRequestBalance.Money = user.RequestBalance;
         this.litUseableBalance.Money = user.Balance - user.RequestBalance;
         HtmlGenericControl htmlGenericControl  = this.spaccountamount;
         HtmlGenericControl htmlGenericControl2 = this.sprequestbalace;
         HtmlAnchor         htmlAnchor          = this.link_balancedraw;
         bool flag    = htmlAnchor.Visible = HiContext.Current.SiteSettings.EnableBulkPaymentAdvance;
         bool visible = htmlGenericControl2.Visible = flag;
         htmlGenericControl.Visible = visible;
     }
 }
Ejemplo n.º 2
0
 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        = (CalendarPanel)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.hidePicture       = (HiddenField)this.FindControl("fmSrc");
     this.smallpic          = (Image)this.FindControl("smallpic");
     this.btnOK1.Click     += this.btnOK1_Click;
     PageTitle.AddSiteNameTitle("个人信息");
     if (!this.Page.IsPostBack)
     {
         MemberInfo user = HiContext.Current.User;
         if (user.UserId != 0)
         {
             this.BindData(user);
         }
     }
 }
Ejemplo n.º 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.ddlStores.DataBind();
            this.ddlStores.Items.Remove(new ListItem("平台", "0"));
            CalendarPanel calendarPanel = this.startDate;

            object[] obj      = new object[4];
            DateTime dateTime = DateTime.Now;

            obj[0]   = dateTime.Year;
            obj[1]   = "-";
            dateTime = DateTime.Now;
            obj[2]   = dateTime.Month;
            obj[3]   = "-01";
            calendarPanel.SelectedDate = string.Concat(obj).ToDateTime();
            CalendarPanel calendarPanel2 = this.endDate;

            object[] obj2 = new object[4];
            dateTime = DateTime.Now;
            dateTime = dateTime.AddMonths(1);
            obj2[0]  = dateTime.Year;
            obj2[1]  = "-";
            dateTime = DateTime.Now;
            dateTime = dateTime.AddMonths(1);
            obj2[2]  = dateTime.Month;
            obj2[3]  = "-01";
            dateTime = string.Concat(obj2).ToDateTime().Value;
            calendarPanel2.SelectedDate = dateTime.AddDays(-1.0);
            this.LoadParameters();
        }
Ejemplo n.º 4
0
 protected override void AttachChildControls()
 {
     if (!HiContext.Current.User.IsReferral())
     {
         this.Page.Response.Redirect("/User/ReferralRegisterAgreement", true);
     }
     this.rptReferralSplitin = (ThemedTemplatedRepeater)this.FindControl("rptReferralSplitin");
     this.pager                     = (Pager)this.FindControl("pager");
     this.calendarStart             = (CalendarPanel)this.FindControl("calendarStart");
     this.calendarEnd               = (CalendarPanel)this.FindControl("calendarEnd");
     this.dropSplittingType         = (SplittingTypesDropDownList)this.FindControl("SplittingTypeList");
     this.imgbtnSearch              = (HtmlAnchor)this.FindControl("abtnSearch");
     this.litAllSplittin            = (FormatedMoneyLabel)this.FindControl("litAllSplittin");
     this.litUseSplittin            = (FormatedMoneyLabel)this.FindControl("litUseSplittin");
     this.litNoUseSplittin          = (FormatedMoneyLabel)this.FindControl("litNoUseSplittin");
     this.litCanGet                 = (FormatedMoneyLabel)this.FindControl("litCanGet");
     this.imgbtnSearch.ServerClick += this.imgbtnSearch_Click;
     PageTitle.AddSiteNameTitle("我的奖励");
     if (!this.Page.IsPostBack)
     {
         this.BindSplittins();
         int userId = HiContext.Current.UserId;
         this.litAllSplittin.Money   = MemberProcessor.GetUserAllSplittin(userId);
         this.litUseSplittin.Money   = MemberProcessor.GetUserUseSplittin(userId);
         this.litNoUseSplittin.Money = MemberProcessor.GetUserNoUseSplittin(userId);
         this.litCanGet.Money        = MemberProcessor.GetUserUseSplittin(userId);
     }
 }
Ejemplo n.º 5
0
 public override void Awake()
 {
     calendarPanel = GetComponent <CalendarPanel>();
     requestCode   = RequestCode.Info;
     actionCode    = ActionCode.UpdateSchedule;
     base.Awake();
 }
Ejemplo n.º 6
0
        private void YearPrevBtn_Click(object sender, EventArgs e)
        {
            CalendarPanel calendarPnl = this.CalendarPnl;

            calendarPnl.Year = calendarPnl.Year - 1;
            this.update_calendar_panel();
        }
        internal void InitializeContent()
        {
            CalendarPanel.InitializeCalendar();
            CalendarPanel.updateAgendaPanel += UpdateAgendaPanel;

            AgendaPanel.InitializeAgenda();
            AgendaPanel.inflateBlueprintPanel += InflateBlueprintPanel;

            WaitingListPanel.InitializePanel();
            WaitingListPanel.inflateReservationForm_WaitingList += InflateReservationForm_WaitingList;

            reservation_blueprint                         = new Reservation_Blueprint();
            reservation_blueprint.Margin                  = new Thickness(295, 50, 0, 0);
            reservation_blueprint.Visibility              = Visibility.Hidden;
            reservation_blueprint.inflateReservationForm += InflateReservationForm;

            reservation_blueprint.popup.createNewReservation += InflateReservationForm_NewReservation;

            reservation_form                       = new Reservation_Form();
            reservation_form.Margin                = new Thickness(50, 120, 0, 0);
            reservation_form.cancelButtonClick    += CloseReservationForm;
            reservation_form.updateAccdbRelatedUI += UpdateAccdbRelatedUI;
            reservation_form.Visibility            = Visibility.Hidden;
            _Canvas.Children.Add(reservation_form);

            reservation_form.delegate_deleteWaitingList += WaitingListPanel.DeleteWaitingList;
            reservation_form.delegate_updateWaitingList += WaitingListPanel.Delegate_UpdateWaitingList;


            reservation_blueprint.closeButtonClicked += CloseUserControl;
            _Canvas.Children.Add(reservation_blueprint);
        }
Ejemplo n.º 8
0
 private void LoadParameters()
 {
     if (!this.Page.IsPostBack)
     {
         this.storeName = this.Page.Request.QueryString["storeName"];
         if (!string.IsNullOrWhiteSpace(this.storeName))
         {
             this.storeName = base.Server.UrlDecode(this.storeName);
         }
         DateTime value;
         if (!string.IsNullOrEmpty(this.Page.Request.QueryString["startDate"]))
         {
             this.startDate = DateTime.Parse(this.Page.Request.QueryString["startDate"]);
             CalendarPanel calendarPanel = this.caStartDate;
             value = this.startDate.Value;
             calendarPanel.Text = value.ToString("yyyy-MM-dd");
         }
         if (!string.IsNullOrEmpty(this.Page.Request.QueryString["endDate"]))
         {
             this.endDate = DateTime.Parse(this.Page.Request.QueryString["endDate"]);
             CalendarPanel calendarPanel2 = this.caEndDate;
             value = this.endDate.Value;
             calendarPanel2.Text = value.ToString("yyyy-MM-dd");
         }
         this.caEndDate.SelectedDate   = this.endDate;
         this.caStartDate.SelectedDate = this.startDate;
     }
 }
Ejemplo n.º 9
0
        /// <summary>
        /// When overridden in a derived class, is invoked whenever application code or internal processes call <see cref="M:System.Windows.FrameworkElement.ApplyTemplate"/>.
        /// </summary>
        public override void OnApplyTemplate()
        {
            this.itemsPanel = null;

            this.DataContext = this;

            base.OnApplyTemplate();
        }
Ejemplo n.º 10
0
    public override void Init()
    {
        RegisterModel <LoveDiaryModel>();
        _calendarPanel = new CalendarPanel();
        _calendarPanel.Init(this);
        _calendarPanel.Show(0);


        GuideManager.RegisterModule(this);
    }
Ejemplo n.º 11
0
    // Use this for initialization
    void Start()
    {
        create();

        _backButton.onClick.AddListener(onClick);

        CalendarPanel.Show();
        ProfilePanel.Show();
        CmdPanel.Show();
    }
Ejemplo n.º 12
0
        private void MonthPrevBtn_Click(object sender, EventArgs e)
        {
            CalendarPanel calendarPnl = this.CalendarPnl;

            calendarPnl.MonthIndex = calendarPnl.MonthIndex - 1;
            if (this.CalendarPnl.MonthIndex == -1)
            {
                this.CalendarPnl.MonthIndex = this.CalendarPnl.Calendar.Months.Count - 1;
                CalendarPanel year = this.CalendarPnl;
                year.Year = year.Year - 1;
            }
            this.update_calendar_panel();
        }
Ejemplo n.º 13
0
        private void MonthNextBtn_Click(object sender, EventArgs e)
        {
            CalendarPanel calendarPnl = this.CalendarPnl;

            calendarPnl.MonthIndex = calendarPnl.MonthIndex + 1;
            if (this.CalendarPnl.MonthIndex == this.CalendarPnl.Calendar.Months.Count)
            {
                this.CalendarPnl.MonthIndex = 0;
                CalendarPanel year = this.CalendarPnl;
                year.Year = year.Year + 1;
            }
            this.update_calendar_panel();
        }
Ejemplo n.º 14
0
        public static Bitmap Calendar(Calendar calendar, int month_index, int year, Size size)
        {
            CalendarPanel calendarPanel = new CalendarPanel()
            {
                Calendar   = calendar,
                MonthIndex = month_index,
                Year       = year,
                Size       = size
            };
            Bitmap bitmap = new Bitmap(calendarPanel.Width, calendarPanel.Height);

            calendarPanel.DrawToBitmap(bitmap, calendarPanel.ClientRectangle);
            return(bitmap);
        }
Ejemplo n.º 15
0
        public static Bitmap Calendar(Calendar calendar, int month_index, int year, Size size)
        {
            CalendarPanel ctrl = new CalendarPanel();

            ctrl.Calendar   = calendar;
            ctrl.MonthIndex = month_index;
            ctrl.Year       = year;
            ctrl.Size       = size;

            Bitmap bmp = new Bitmap(ctrl.Width, ctrl.Height);

            ctrl.DrawToBitmap(bmp, ctrl.ClientRectangle);

            return(bmp);
        }
Ejemplo n.º 16
0
        public void ShowCalendar(Calendar calendar, int month_index, int year)
        {
            CalendarPanel calendarPanel = new CalendarPanel()
            {
                Calendar   = calendar,
                MonthIndex = month_index,
                Year       = year
            };

            base.Controls.Clear();
            base.Controls.Add(calendarPanel);
            calendarPanel.Dock = DockStyle.Fill;
            this.fMode         = PlayerViewMode.Calendar;
            base.Show();
        }
Ejemplo n.º 17
0
        public void ShowCalendar(Calendar calendar, int month_index, int year)
        {
            CalendarPanel ctrl = new CalendarPanel();

            ctrl.Calendar   = calendar;
            ctrl.MonthIndex = month_index;
            ctrl.Year       = year;

            Controls.Clear();
            Controls.Add(ctrl);
            ctrl.Dock = DockStyle.Fill;

            fMode = PlayerViewMode.Calendar;

            Show();
        }
            private int ColumnImpl()
            {
                var pValue = 0;

                UIElement spOwner;

                spOwner = Owner;

                DateTime date;

                date = (spOwner as CalendarViewItem).DateBase;

                CalendarView pParent = (spOwner as CalendarViewItem).GetParentCalendarView();

                CalendarViewGeneratorHost spHost;

                pParent.GetActiveGeneratorHost(out spHost);

                CalendarPanel pCalendarPanel = spHost.Panel;

                if (pCalendarPanel is {})
Ejemplo n.º 19
0
        private void LoadParameters()
        {
            this.hidProductId.Value = this.ProductId.ToString();
            this.hidStoreId.Value   = HiContext.Current.Manager.StoreId.ToString();
            if (!string.IsNullOrEmpty(this.Page.Request.QueryString["startTime"]))
            {
                this.startTime = Globals.UrlDecode(this.Page.Request.QueryString["startTime"]).ToDateTime();
            }
            if (!string.IsNullOrEmpty(this.Page.Request.QueryString["endTime"]))
            {
                this.endTime = Globals.UrlDecode(this.Page.Request.QueryString["endTime"]).ToDateTime();
            }
            CalendarPanel calendarPanel = this.cldStartDate;
            object        text;
            DateTime      value;

            if (!this.startTime.HasValue)
            {
                text = string.Empty;
            }
            else
            {
                value = this.startTime.Value;
                text  = value.ToString("yyyy-MM-dd");
            }
            calendarPanel.Text = (string)text;
            CalendarPanel calendarPanel2 = this.cldEndDate;
            object        text2;

            if (!this.endTime.HasValue)
            {
                text2 = string.Empty;
            }
            else
            {
                value = this.endTime.Value;
                text2 = value.ToString("yyyy-MM-dd");
            }
            calendarPanel2.Text = (string)text2;
        }
Ejemplo n.º 20
0
    private void create()
    {
        GameObject o = null;

        o = Instantiate(PrefMainCharacterPanel);
        _mainCharacterPanel = o.GetComponent <MainCharacterPanel>();
        _mainCharacterPanel.transform.SetParent(transform, false);

        o           = Instantiate(PrefBackButton);
        _backButton = o.GetComponent <Button>();
        _backButton.transform.SetParent(transform, false);

        o = Instantiate(PrefCalendarPanel);
        _calendarPanel = o.GetComponent <CalendarPanel>();
        _calendarPanel.transform.SetParent(transform, false);

        o             = Instantiate(PrefProfilePanel);
        _profilePanel = o.GetComponent <ProfilePanel>();
        _profilePanel.transform.SetParent(transform, false);

        o         = Instantiate(PrefCmdPanel);
        _cmdPanel = o.GetComponent <CmdPanel>();
        _cmdPanel.transform.SetParent(transform, false);
    }
Ejemplo n.º 21
0
 public ContainerManager(CalendarPanel owner)
 {
     _owner = owner;
 }
Ejemplo n.º 22
0
        /// <summary>
        /// Prepares the specified element to display the specified item.
        /// </summary>
        /// <param name="element">Element used to display the specified item.</param>
        /// <param name="item">Specified item.</param>
        protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
        {
            base.PrepareContainerForItemOverride(element, item);

            CalendarButtonContent content = item as CalendarButtonContent;


            StyleManager.SetTheme(element, StyleManager.GetTheme(this));


            if (content != null)
            {
                // This check fixed an integratin problem with DataForm
                // TODO: Investigate why this check fixed an integratin problem with DataForm
                if (!this.DateToContent.ContainsKey(content.Date))
                {
                    this.DateToContent.Add(content.Date, content);
                }
            }

            CalendarButton button = element as CalendarButton;

            if (button != null && button != item)
            {
                if (content.ButtonType == CalendarButtonType.WeekName ||
                    content.ButtonType == CalendarButtonType.WeekNumber)
                {
                    button.IsTabStop = false;

                    string propertyPath = content.ButtonType == CalendarButtonType.WeekName ? "HideRow" : "HideColumn";

                    Binding binding = new Binding(propertyPath)
                    {
                        Source    = this,
                        Converter = new BoleanToVisibilityConverterRevert(),
                        Mode      = BindingMode.TwoWay
                    };
                    button.SetBinding(Button.VisibilityProperty, binding);

                    if (this.itemsPanel == null)
                    {
                        var calendarPanel = this.GetItemsPanel <CalendarPanel>();
                        if (calendarPanel != null)
                        {
                            this.itemsPanel = calendarPanel;

                            calendarPanel.SetBinding(CalendarPanel.HideFirstColumnProperty, new Binding("HideColumn")
                            {
                                Source = this
                            });
                            calendarPanel.SetBinding(CalendarPanel.HideFirstRowProperty, new Binding("HideRow")
                            {
                                Source = this
                            });
                        }
                    }
                }
                button.Content     = item;
                button.MouseEnter += new System.Windows.Input.MouseEventHandler(this.CalendarButtonMouseEnter);
                ////button.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.CalendarButtonMouseLeftButtonDown);
                ////button.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.CalendarButtonMouseLeftButtonUp);
                button.AddHandler(CalendarButton.MouseLeftButtonDownEvent, new System.Windows.Input.MouseButtonEventHandler(this.CalendarButtonMouseLeftButtonDown), true);
                button.AddHandler(CalendarButton.MouseLeftButtonUpEvent, new System.Windows.Input.MouseButtonEventHandler(this.CalendarButtonMouseLeftButtonUp), true);

                if (dateToFocus.HasValue && content.Date.Equals(dateToFocus.Value))
                {
                    button.FocusOnLoad = true;
                    dateToFocus        = null;
                }
            }
        }
Ejemplo n.º 23
0
 protected override void AttachChildControls()
 {
     if (!HiContext.Current.User.IsReferral())
     {
         this.Page.Response.Redirect("/User/ReferralRegisterAgreement", true);
     }
     this.txtSearchText      = (TextBox)this.FindControl("txtNextUserName");
     this.abtnSearch         = (HtmlAnchor)this.FindControl("abtnSearch");
     this.grdReferralmembers = (ThemedTemplatedRepeater)this.FindControl("grdReferralmembers");
     this.pager = (Pager)this.FindControl("pager");
     this.litExpandMemberInMonth  = (Literal)this.FindControl("litExpandMemberInMonth");
     this.litExpandMemberAll      = (Literal)this.FindControl("litExpandMemberAll");
     this.fmlNextMemberTotal      = (FormatedMoneyLabel)this.FindControl("fmlNextMemberTotal");
     this.calendarStart           = (CalendarPanel)this.FindControl("calendarStart");
     this.calendarEnd             = (CalendarPanel)this.FindControl("calendarEnd");
     this.abtnSearch.ServerClick += this.btnSearchButton_Click;
     if (!this.Page.IsPostBack)
     {
         int userId = HiContext.Current.User.UserId;
         PageTitle.AddSiteNameTitle("下级分销员");
         this.litExpandMemberInMonth.Text = MemberProcessor.GetLowerNumByUserIdNowMonth(userId).ToNullString();
         this.litExpandMemberAll.Text     = MemberProcessor.GetLowerNumByUserId(userId).ToNullString();
         this.fmlNextMemberTotal.Text     = MemberProcessor.GetLowerSaleTotalByUserId(userId).F2ToString("f2");
         MemberQuery memberQuery = new MemberQuery();
         if (!string.IsNullOrEmpty(this.Page.Request.QueryString["username"]))
         {
             memberQuery.UserName = this.Page.Server.UrlDecode(this.Page.Request.QueryString["username"]);
         }
         if (!string.IsNullOrEmpty(this.Page.Request.QueryString["dataStart"]))
         {
             memberQuery.StartTime = Convert.ToDateTime(this.Page.Server.UrlDecode(this.Page.Request.QueryString["dataStart"]));
         }
         if (!string.IsNullOrEmpty(this.Page.Request.QueryString["dataEnd"]))
         {
             memberQuery.EndTime = Convert.ToDateTime(this.Page.Server.UrlDecode(this.Page.Request.QueryString["dataEnd"]));
         }
         memberQuery.PageIndex = this.pager.PageIndex;
         memberQuery.PageSize  = this.pager.PageSize;
         DbQueryResult mySubUsers = MemberProcessor.GetMySubUsers(memberQuery);
         if (mySubUsers.Data != null)
         {
             mySubUsers.Data.Columns.Add("ShowUserName");
             DataTable data = mySubUsers.Data;
             foreach (DataRow row in data.Rows)
             {
                 if (!string.IsNullOrEmpty(row["NickName"].ToNullString()))
                 {
                     row["ShowUserName"] = row["NickName"];
                 }
                 else if (!string.IsNullOrEmpty(row["ReferralCellPhone"].ToNullString()))
                 {
                     row["ShowUserName"] = row["ReferralCellPhone"];
                 }
                 else if (!string.IsNullOrEmpty(row["CellPhone"].ToNullString()))
                 {
                     row["ShowUserName"] = row["CellPhone"];
                 }
                 else
                 {
                     row["ShowUserName"] = row["UserName"];
                 }
             }
         }
         this.grdReferralmembers.DataSource = mySubUsers.Data;
         this.grdReferralmembers.DataBind();
         this.txtSearchText.Text         = memberQuery.UserName;
         this.calendarStart.SelectedDate = memberQuery.StartTime;
         this.calendarEnd.SelectedDate   = memberQuery.EndTime;
         this.pager.TotalRecords         = mySubUsers.TotalRecords;
     }
 }
Ejemplo n.º 24
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = this.Page.Request["RedEnvelopeId"].ToInt(0);
            WeiXinRedEnvelopeInfo       weiXinRedEnvelope = WeiXinRedEnvelopeProcessor.GetWeiXinRedEnvelope(id);
            Dictionary <string, object> calendarParameter = this.txtActiveStartTime.CalendarParameter;
            DateTime dateTime = DateTime.Now;

            calendarParameter.Add("startDate", dateTime.ToString("yyyy-MM-dd"));
            Dictionary <string, object> calendarParameter2 = this.txtActiveEndTime.CalendarParameter;

            dateTime = DateTime.Now;
            calendarParameter2.Add("startDate", dateTime.ToString("yyyy-MM-dd"));
            Dictionary <string, object> calendarParameter3 = this.txtEffectivePeriodStartTime.CalendarParameter;

            dateTime = DateTime.Now;
            calendarParameter3.Add("startDate", dateTime.ToString("yyyy-MM-dd"));
            Dictionary <string, object> calendarParameter4 = this.txtEffectivePeriodEndTime.CalendarParameter;

            dateTime = DateTime.Now;
            calendarParameter4.Add("startDate", dateTime.ToString("yyyy-MM-dd"));
            if (weiXinRedEnvelope == null)
            {
                base.GotoResourceNotFound();
            }
            else
            {
                CalendarPanel calendarPanel = this.txtActiveEndTime;
                dateTime           = weiXinRedEnvelope.ActiveEndTime;
                calendarPanel.Text = dateTime.ToString("yyyy-MM-dd");
                CalendarPanel calendarPanel2 = this.txtActiveStartTime;
                dateTime            = weiXinRedEnvelope.ActiveStartTime;
                calendarPanel2.Text = dateTime.ToString("yyyy-MM-dd");
                CalendarPanel calendarPanel3 = this.txtEffectivePeriodEndTime;
                dateTime            = weiXinRedEnvelope.EffectivePeriodEndTime;
                calendarPanel3.Text = dateTime.ToString("yyyy-MM-dd");
                CalendarPanel calendarPanel4 = this.txtEffectivePeriodStartTime;
                dateTime            = weiXinRedEnvelope.EffectivePeriodStartTime;
                calendarPanel4.Text = dateTime.ToString("yyyy-MM-dd");
                this.txtEnableIssueMinAmount.Text = weiXinRedEnvelope.EnableIssueMinAmount.F2ToString("f2");
                this.txtEnableUseMinAmount.Text   = weiXinRedEnvelope.EnableUseMinAmount.F2ToString("f2");
                this.txtMaxAmount.Text            = weiXinRedEnvelope.MaxAmount.F2ToString("f2");
                this.txtMaxNumber.Text            = weiXinRedEnvelope.MaxNumber.F2ToString("f2");
                this.txtName.Text         = weiXinRedEnvelope.Name;
                this.txtShareDetails.Text = weiXinRedEnvelope.ShareDetails;
                this.txtShareTitle.Text   = weiXinRedEnvelope.ShareTitle;
                if (weiXinRedEnvelope.EnableUseMinAmount > decimal.Zero)
                {
                    this.rdbSatisfy.Checked   = true;
                    this.rdbUnlimited.Checked = false;
                }
                else
                {
                    this.divSatisfy.Visible   = false;
                    this.rdbSatisfy.Checked   = false;
                    this.rdbUnlimited.Checked = true;
                }
                if (weiXinRedEnvelope.Type == 1.GetHashCode())
                {
                    this.random.Visible        = false;
                    this.one.Visible           = true;
                    this.rdbTypeFixed.Checked  = true;
                    this.rdbTypeRandom.Checked = false;
                    this.txtAmountFixed.Text   = weiXinRedEnvelope.MinAmount.F2ToString("f2");
                }
                else
                {
                    this.random.Visible        = true;
                    this.one.Visible           = false;
                    this.rdbTypeFixed.Checked  = false;
                    this.rdbTypeRandom.Checked = true;
                    this.txtMinAmount.Text     = weiXinRedEnvelope.MinAmount.F2ToString("f2");
                    this.txtMaxAmount.Text     = weiXinRedEnvelope.MaxAmount.F2ToString("f2");
                }
            }
        }
Ejemplo n.º 25
0
        protected override void AttachChildControls()
        {
            this.calendarStartDate = (CalendarPanel)this.FindControl("calendarStartDate");
            this.calendarEndDate   = (CalendarPanel)this.FindControl("calendarEndDate");
            this.hdorderId         = (HtmlInputHidden)this.FindControl("hdorderId");
            this.txtOrderId        = (TextBox)this.FindControl("txtOrderId");
            this.txtProductName    = (TextBox)this.FindControl("txtProductName");
            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.imgbtnSearch      = (Button)this.FindControl("imgbtnSearch");
            this.litOrderTotal     = (Literal)this.FindControl("litOrderTotal");
            this.listOrders        = (Common_OrderManage_OrderList)this.FindControl("Common_OrderManage_OrderList");
            this.pager             = (Pager)this.FindControl("pager");
            this.demodiv           = (HtmlGenericControl)this.FindControl("demodiv");
            SiteSettings masterSettings = SettingsManager.GetMasterSettings();

            this.demodiv.Visible           = masterSettings.IsDemoSite;
            this.imgbtnSearch.Click       += this.imgbtnSearch_Click;
            this.btnPay.Click             += this.btnPay_Click;
            this.listOrders.ItemDataBound += this.listOrders_ItemDataBound;
            this.listOrders.ItemCommand   += this.listOrders_ItemCommand;
            PageTitle.AddSiteNameTitle("我的订单");
            if (!this.Page.IsPostBack)
            {
                IList <PaymentModeInfo> paymentModes    = TradeHelper.GetPaymentModes(PayApplicationType.payOnPC);
                PaymentModeInfo         paymentModeInfo = (from p in paymentModes
                                                           where p.Gateway.ToLower() == "hishop.plugins.payment.podrequest"
                                                           select p).FirstOrDefault();
                PaymentModeInfo paymentModeInfo2 = (from p in paymentModes
                                                    where p.Gateway.ToLower() == "hishop.plugins.payment.bankrequest"
                                                    select p).FirstOrDefault();
                if (paymentModeInfo != null)
                {
                    paymentModes.Remove(paymentModeInfo);
                }
                if (paymentModeInfo2 != null)
                {
                    paymentModes.Remove(paymentModeInfo2);
                }
                this.dropPayType.DataSource     = paymentModes;
                this.dropPayType.DataTextField  = "Name";
                this.dropPayType.DataValueField = "ModeId";
                this.dropPayType.DataBind();
                string text = "";
                for (int i = 0; i < this.dropPayType.Items.Count; i++)
                {
                    text = paymentModes[i].Gateway;
                    this.dropPayType.Items[i].Attributes["Gateway"] = text;
                    AttributeCollection attributes = this.dropPayType.Items[i].Attributes;
                    bool flag = TradeHelper.GatewayIsCanBackReturn(text) || text == "hishop.plugins.payment.advancerequest";
                    attributes["IsBackReturn"] = flag.ToString().ToLower();
                }
                this.BindOrders();
            }
        }
Ejemplo n.º 26
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(CalendarListForm));

            this.Toolbar             = new ToolStrip();
            this.AddBtn              = new ToolStripButton();
            this.RemoveBtn           = new ToolStripButton();
            this.EditBtn             = new ToolStripButton();
            this.toolStripSeparator3 = new ToolStripSeparator();
            this.ExportBtn           = new ToolStripButton();
            this.PlayerViewBtn       = new ToolStripButton();
            this.CalendarList        = new ListView();
            this.NameHdr             = new ColumnHeader();
            this.MonthsHdr           = new ColumnHeader();
            this.DaysHdr             = new ColumnHeader();
            this.Splitter            = new SplitContainer();
            this.CalendarPnl         = new CalendarPanel();
            this.NavigationToolbar   = new ToolStrip();
            this.YearPrevBtn         = new ToolStripLabel();
            this.MonthPrevBtn        = new ToolStripLabel();
            this.toolStripSeparator1 = new ToolStripSeparator();
            this.MonthBox            = new ToolStripComboBox();
            this.YearBox             = new ToolStripTextBox();
            this.toolStripSeparator2 = new ToolStripSeparator();
            this.MonthNextBtn        = new ToolStripLabel();
            this.YearNextBtn         = new ToolStripLabel();
            this.CloseBtn            = new Button();
            this.Toolbar.SuspendLayout();
            this.Splitter.Panel1.SuspendLayout();
            this.Splitter.Panel2.SuspendLayout();
            this.Splitter.SuspendLayout();
            this.NavigationToolbar.SuspendLayout();
            base.SuspendLayout();
            ToolStripItemCollection items = this.Toolbar.Items;

            ToolStripItem[] addBtn = new ToolStripItem[] { this.AddBtn, this.RemoveBtn, this.EditBtn, this.toolStripSeparator3, this.ExportBtn, this.PlayerViewBtn };
            items.AddRange(addBtn);
            this.Toolbar.Location             = new Point(0, 0);
            this.Toolbar.Name                 = "Toolbar";
            this.Toolbar.Size                 = new System.Drawing.Size(485, 25);
            this.Toolbar.TabIndex             = 0;
            this.Toolbar.Text                 = "toolStrip1";
            this.AddBtn.DisplayStyle          = ToolStripItemDisplayStyle.Text;
            this.AddBtn.Image                 = (Image)componentResourceManager.GetObject("AddBtn.Image");
            this.AddBtn.ImageTransparentColor = Color.Magenta;
            this.AddBtn.Name                         = "AddBtn";
            this.AddBtn.Size                         = new System.Drawing.Size(33, 22);
            this.AddBtn.Text                         = "Add";
            this.AddBtn.Click                       += new EventHandler(this.AddBtn_Click);
            this.RemoveBtn.DisplayStyle              = ToolStripItemDisplayStyle.Text;
            this.RemoveBtn.Image                     = (Image)componentResourceManager.GetObject("RemoveBtn.Image");
            this.RemoveBtn.ImageTransparentColor     = Color.Magenta;
            this.RemoveBtn.Name                      = "RemoveBtn";
            this.RemoveBtn.Size                      = new System.Drawing.Size(54, 22);
            this.RemoveBtn.Text                      = "Remove";
            this.RemoveBtn.Click                    += new EventHandler(this.RemoveBtn_Click);
            this.EditBtn.DisplayStyle                = ToolStripItemDisplayStyle.Text;
            this.EditBtn.Image                       = (Image)componentResourceManager.GetObject("EditBtn.Image");
            this.EditBtn.ImageTransparentColor       = Color.Magenta;
            this.EditBtn.Name                        = "EditBtn";
            this.EditBtn.Size                        = new System.Drawing.Size(31, 22);
            this.EditBtn.Text                        = "Edit";
            this.EditBtn.Click                      += new EventHandler(this.EditBtn_Click);
            this.toolStripSeparator3.Name            = "toolStripSeparator3";
            this.toolStripSeparator3.Size            = new System.Drawing.Size(6, 25);
            this.ExportBtn.DisplayStyle              = ToolStripItemDisplayStyle.Text;
            this.ExportBtn.Image                     = (Image)componentResourceManager.GetObject("ExportBtn.Image");
            this.ExportBtn.ImageTransparentColor     = Color.Magenta;
            this.ExportBtn.Name                      = "ExportBtn";
            this.ExportBtn.Size                      = new System.Drawing.Size(44, 22);
            this.ExportBtn.Text                      = "Export";
            this.ExportBtn.Click                    += new EventHandler(this.ExportBtn_Click);
            this.PlayerViewBtn.DisplayStyle          = ToolStripItemDisplayStyle.Text;
            this.PlayerViewBtn.Image                 = (Image)componentResourceManager.GetObject("PlayerViewBtn.Image");
            this.PlayerViewBtn.ImageTransparentColor = Color.Magenta;
            this.PlayerViewBtn.Name                  = "PlayerViewBtn";
            this.PlayerViewBtn.Size                  = new System.Drawing.Size(114, 22);
            this.PlayerViewBtn.Text                  = "Send to Player View";
            this.PlayerViewBtn.Click                += new EventHandler(this.PlayerViewBtn_Click);
            ListView.ColumnHeaderCollection columns = this.CalendarList.Columns;
            ColumnHeader[] nameHdr = new ColumnHeader[] { this.NameHdr, this.MonthsHdr, this.DaysHdr };
            columns.AddRange(nameHdr);
            this.CalendarList.Dock          = DockStyle.Fill;
            this.CalendarList.FullRowSelect = true;
            this.CalendarList.HeaderStyle   = ColumnHeaderStyle.Nonclickable;
            this.CalendarList.HideSelection = false;
            this.CalendarList.Location      = new Point(0, 25);
            this.CalendarList.MultiSelect   = false;
            this.CalendarList.Name          = "CalendarList";
            this.CalendarList.Size          = new System.Drawing.Size(485, 72);
            this.CalendarList.TabIndex      = 1;
            this.CalendarList.UseCompatibleStateImageBehavior = false;
            this.CalendarList.View = View.Details;
            this.CalendarList.SelectedIndexChanged += new EventHandler(this.CalendarList_SelectedIndexChanged);
            this.CalendarList.DoubleClick          += new EventHandler(this.EditBtn_Click);
            this.NameHdr.Text         = "Calendar";
            this.NameHdr.Width        = 300;
            this.MonthsHdr.Text       = "Months";
            this.MonthsHdr.TextAlign  = HorizontalAlignment.Right;
            this.DaysHdr.Text         = "Days";
            this.DaysHdr.TextAlign    = HorizontalAlignment.Right;
            this.Splitter.Anchor      = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            this.Splitter.FixedPanel  = FixedPanel.Panel1;
            this.Splitter.Location    = new Point(12, 12);
            this.Splitter.Name        = "Splitter";
            this.Splitter.Orientation = Orientation.Horizontal;
            this.Splitter.Panel1.Controls.Add(this.CalendarList);
            this.Splitter.Panel1.Controls.Add(this.Toolbar);
            this.Splitter.Panel2.Controls.Add(this.CalendarPnl);
            this.Splitter.Panel2.Controls.Add(this.NavigationToolbar);
            this.Splitter.Size               = new System.Drawing.Size(485, 364);
            this.Splitter.SplitterDistance   = 97;
            this.Splitter.TabIndex           = 2;
            this.CalendarPnl.BorderStyle     = BorderStyle.FixedSingle;
            this.CalendarPnl.Calendar        = null;
            this.CalendarPnl.Dock            = DockStyle.Fill;
            this.CalendarPnl.Location        = new Point(0, 25);
            this.CalendarPnl.MonthIndex      = 0;
            this.CalendarPnl.Name            = "CalendarPnl";
            this.CalendarPnl.Size            = new System.Drawing.Size(485, 238);
            this.CalendarPnl.TabIndex        = 0;
            this.CalendarPnl.Year            = 0;
            this.NavigationToolbar.GripStyle = ToolStripGripStyle.Hidden;
            ToolStripItemCollection toolStripItemCollections = this.NavigationToolbar.Items;

            ToolStripItem[] yearPrevBtn = new ToolStripItem[] { this.YearPrevBtn, this.MonthPrevBtn, this.toolStripSeparator1, this.MonthBox, this.YearBox, this.toolStripSeparator2, this.MonthNextBtn, this.YearNextBtn };
            toolStripItemCollections.AddRange(yearPrevBtn);
            this.NavigationToolbar.Location = new Point(0, 0);
            this.NavigationToolbar.Name     = "NavigationToolbar";
            this.NavigationToolbar.Size     = new System.Drawing.Size(485, 25);
            this.NavigationToolbar.TabIndex = 1;
            this.NavigationToolbar.Text     = "toolStrip1";
            this.YearPrevBtn.IsLink         = true;
            this.YearPrevBtn.Name           = "YearPrevBtn";
            this.YearPrevBtn.Size           = new System.Drawing.Size(49, 22);
            this.YearPrevBtn.Text           = "<< Year";
            this.YearPrevBtn.Click         += new EventHandler(this.YearPrevBtn_Click);
            this.MonthPrevBtn.IsLink        = true;
            this.MonthPrevBtn.Name          = "MonthPrevBtn";
            this.MonthPrevBtn.Size          = new System.Drawing.Size(62, 22);
            this.MonthPrevBtn.Text          = "<< Month";
            this.MonthPrevBtn.Click        += new EventHandler(this.MonthPrevBtn_Click);
            this.toolStripSeparator1.Name   = "toolStripSeparator1";
            this.toolStripSeparator1.Size   = new System.Drawing.Size(6, 25);
            this.MonthBox.DropDownStyle     = ComboBoxStyle.DropDownList;
            this.MonthBox.Name = "MonthBox";
            this.MonthBox.Size = new System.Drawing.Size(121, 25);
            this.MonthBox.SelectedIndexChanged += new EventHandler(this.MonthBox_SelectedIndexChanged);
            this.YearBox.Name                     = "YearBox";
            this.YearBox.Size                     = new System.Drawing.Size(100, 25);
            this.YearBox.TextChanged             += new EventHandler(this.YearBox_TextChanged);
            this.toolStripSeparator2.Name         = "toolStripSeparator2";
            this.toolStripSeparator2.Size         = new System.Drawing.Size(6, 25);
            this.MonthNextBtn.IsLink              = true;
            this.MonthNextBtn.Name                = "MonthNextBtn";
            this.MonthNextBtn.Size                = new System.Drawing.Size(62, 22);
            this.MonthNextBtn.Text                = "Month >>";
            this.MonthNextBtn.Click              += new EventHandler(this.MonthNextBtn_Click);
            this.YearNextBtn.IsLink               = true;
            this.YearNextBtn.Name                 = "YearNextBtn";
            this.YearNextBtn.Size                 = new System.Drawing.Size(49, 22);
            this.YearNextBtn.Text                 = "Year >>";
            this.YearNextBtn.Click               += new EventHandler(this.YearNextBtn_Click);
            this.CloseBtn.Anchor                  = AnchorStyles.Bottom | AnchorStyles.Right;
            this.CloseBtn.DialogResult            = System.Windows.Forms.DialogResult.OK;
            this.CloseBtn.Location                = new Point(422, 382);
            this.CloseBtn.Name                    = "CloseBtn";
            this.CloseBtn.Size                    = new System.Drawing.Size(75, 23);
            this.CloseBtn.TabIndex                = 3;
            this.CloseBtn.Text                    = "Close";
            this.CloseBtn.UseVisualStyleBackColor = true;
            base.AcceptButton                     = this.CloseBtn;
            base.AutoScaleDimensions              = new SizeF(6f, 13f);
            base.AutoScaleMode                    = System.Windows.Forms.AutoScaleMode.Font;
            base.ClientSize = new System.Drawing.Size(509, 417);
            base.Controls.Add(this.CloseBtn);
            base.Controls.Add(this.Splitter);
            base.MaximizeBox   = false;
            base.MinimizeBox   = false;
            base.Name          = "CalendarListForm";
            base.ShowIcon      = false;
            base.ShowInTaskbar = false;
            base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            base.StartPosition = FormStartPosition.CenterParent;
            this.Text          = "Calendars";
            this.Toolbar.ResumeLayout(false);
            this.Toolbar.PerformLayout();
            this.Splitter.Panel1.ResumeLayout(false);
            this.Splitter.Panel1.PerformLayout();
            this.Splitter.Panel2.ResumeLayout(false);
            this.Splitter.Panel2.PerformLayout();
            this.Splitter.ResumeLayout(false);
            this.NavigationToolbar.ResumeLayout(false);
            this.NavigationToolbar.PerformLayout();
            base.ResumeLayout(false);
        }