示例#1
0
        /// <summary>
        /// 获取采购进货分页信息
        /// </summary>
        /// <param name="para"></param>
        /// <returns></returns>
        public PurchaseCostumePage GetPurchaseCostumePage(PurchaseCostumePagePara para)
        {
            byte[] request  = SerializeHelper.ResultToSerialize(para);
            byte[] response = this.engine.CustomizeOutter.Query(ManageInformationTypes.GetPurchaseCostumePage, request);

            return(CompactPropertySerializer.Default.Deserialize <PurchaseCostumePage>(response, 0));
        }
 private void BaseButton_Search_Click(object sender, EventArgs e)
 {
     try
     {
         if (GlobalUtil.EngineUnconnectioned(this))
         {
             return;
         }
         string orderID = string.IsNullOrEmpty(this.skinTextBox_OrderID.SkinTxt.Text) ? null : this.skinTextBox_OrderID.SkinTxt.Text;
         this.pagePara = new PurchaseCostumePagePara()
         {
             PurchaseOrderID = orderID,
             IsOpenDate      = true,
             StartDate       = new CJBasic.Date(this.dateTimePicker_Start.Value),
             EndDate         = new CJBasic.Date(this.dateTimePicker_End.Value),
             PageIndex       = 0,
             PageSize        = this.dataGridViewPagingSumCtrl.PageSize,
             ShopID          = ValidateUtil.CheckEmptyValue(this.skinComboBoxShopID.SelectedValue),
             CostumeID       = ValidateUtil.CheckEmptyValue(skinTextBox_costumeID.SkinTxt.Text)
         };
         PurchaseCostumePage listPage = GlobalCache.ServerProxy.GetPurchaseCostumePage(this.pagePara);
         dataGridViewPagingSumCtrl.OrderPara = pagePara;
         this.dataGridViewPagingSumCtrl.Initialize(listPage);
         this.BindingPurchaseOrderSource(listPage);
     }
     catch (Exception ee)
     {
         GlobalUtil.ShowError(ee);
     }
     finally
     {
         GlobalUtil.UnLockPage(this);
     }
 }
 private void Initialize()
 {
     DateTimeUtil.DateTimePicker_SetDateTimePicker(dateTimePicker_Start, dateTimePicker_End);
     this.pagePara = new PurchaseCostumePagePara();
     this.dataGridViewPagingSumCtrl.Initialize(1);
     this.BindingPurchaseOrderSource(null);
     this.skinTextBox_costumeID.SkinTxt.Text = string.Empty;
     this.skinTextBox_OrderID.SkinTxt.Text   = string.Empty;
     GlobalUtil.SetShop(skinComboBoxShopID);
     skinSplitContainer1.Panel2Collapsed = true;
 }