示例#1
0
        public void WorkDeskCtrlSearch(EmRetailOrderState orderState, RefundStatus refund)
        {
            //skinComboBoxOrderState.SelectedValue = orderState;
            //skinComboBoxRefundState.SelectedValue = refund;
            //DateTimeUtil.DateTimePicker_All(dateTimePicker_Start, dateTimePicker_End);
            if (orderState == EmRetailOrderState.All && refund == RefundStatus.Refunding)
            {
                tabControl1.SelectTab(4);
            }
            else if (orderState == EmRetailOrderState.WaitDelivery && refund == RefundStatus.NotSelect)
            {
                tabControl1.SelectTab(2);
            }

            // tabControl1_SelectedIndexChanged(null, null);
            //  BaseButton_Search_Click(null, null);
        }
示例#2
0
        public void WorkDeskFilteCtrlSearch(EmRetailOrderState orderState, RefundStatus refund)
        {
            if (orderState == EmRetailOrderState.All && refund == RefundStatus.Refunding)
            {
                tabControl1.SelectTab(4);
            }
            else if (orderState == EmRetailOrderState.WaitDelivery && refund == RefundStatus.NotSelect)
            {
                tabControl1.SelectTab(2);
            }

            DateTimeUtil.DateTimePicker_All(dateTimePicker_Start, dateTimePicker_End);
            GetEmOrderPagePara pageParaOfWork = new GetEmOrderPagePara()
            {
                OrderID           = this.skinTextBoxOrderId.Text,
                StartDate         = new Date(this.dateTimePicker_Start.Value),
                EndDate           = new Date(this.dateTimePicker_End.Value),
                PageIndex         = 0,
                PageSize          = this.dataGridViewPagingSumCtrl.PageSize,
                MemberPhoneOrName = null,
                CostumeIDOrName   = null,
                OrderState        = EmRetailOrderState.All,
                RefundStatus      = RefundStatus.Refunding,
            };

            EmOrderPage          listPage  = GlobalCache.EMallServerProxy.GetEmOrderPage(pageParaOfWork);
            List <EmRetailOrder> orderList = listPage.ResultList.FindAll(t => t.RefundStateName == EmRetailOrder.GetRefundState(RefundStateEnum.RefundApplication) || t.RefundStateName == EmRetailOrder.GetRefundState(RefundStateEnum.Refunding));

            dataGridViewPagingSumCtrl.OrderPara = pagePara;
            //this.dataGridViewPagingSumCtrl.Initialize(orderList);

            splitContainer1.Panel2Collapsed = true;
            this.dataGridViewPagingSumCtrl.BindingDataSource <EmRetailOrder>(orderList, null, orderList.Count);
            if (orderList != null && orderList.Count > 0)
            {
                dataGridView1_SelectionChanged(dataGridView1, null);
            }

            UpdateTabPageTitle(false);
        }
示例#3
0
 public static String GetOrderState(EmRetailOrderState orderState)
 {
     return(EnumHelper.GetDescription(orderState));
 }