Beispiel #1
0
 protected void RtvBankAccountsNodeClick(object sender, RadTreeNodeEventArgs e)
 {
     if (!string.IsNullOrEmpty(e.Node.Value))
     {
         BankAccountsId = new Guid(e.Node.Value);
         var headFilialeList = CacheCollection.Filiale.GetHeadList();
         foreach (var filialeInfo in headFilialeList)
         {
             if (BankAccountsId != filialeInfo.ID)
             {
                 FilialeId = Guid.Empty;
             }
             else
             {
                 FilialeId      = BankAccountsId;
                 BankAccountsId = Guid.Empty;
                 break;
             }
         }
         var salePlatformList = CacheCollection.SalePlatform.GetList();
         if (FilialeId == Guid.Empty)
         {
             foreach (var salePlatformInfo in salePlatformList)
             {
                 if (BankAccountsId != salePlatformInfo.ID)
                 {
                     FilialeId = Guid.Empty;
                 }
                 else
                 {
                     FilialeId      = BankAccountsId;
                     BankAccountsId = Guid.Empty;
                     break;
                 }
             }
         }
         CurrentReceiptType                = ReceiptType.All;
         StartDate                         = RDP_StartDate.SelectedDate ?? DateTime.MinValue;
         EndDate                           = RDP_EndDate.SelectedDate ?? DateTime.MinValue;
         RCB_ReceiptType.SelectedValue     = "-1";
         txtTradeCode.Text                 = string.Empty;
         txtMinIncome.Text                 = string.Empty;
         txtMaxIncome.Text                 = string.Empty;
         TradeCode                         = String.Empty;
         RadGridWasteBook.CurrentPageIndex = 0;
         RadGridWasteBook.Rebind();
     }
 }
Beispiel #2
0
        // updata by liucaijun at 2010.07.22
        protected void LbSearchClick(object sender, EventArgs e)
        {
            StartDate          = RDP_StartDate.SelectedDate == null ? DateTime.MinValue : RDP_StartDate.SelectedDate.Value;
            EndDate            = RDP_EndDate.SelectedDate == null ? DateTime.MinValue : RDP_EndDate.SelectedDate.Value;
            CurrentReceiptType = (ReceiptType)Convert.ToInt32(RCB_ReceiptType.SelectedValue);
            MinIncome          = String.IsNullOrEmpty(txtMinIncome.Text) ? double.MinValue : Convert.ToDouble(txtMinIncome.Text.Trim());
            MaxIncome          = String.IsNullOrEmpty(txtMaxIncome.Text) ? double.MaxValue : Convert.ToDouble(txtMaxIncome.Text.Trim());
            TradeCode          = txtTradeCode.Text;
            IsCheck            = int.Parse(RCB_IsCheck.SelectedValue);
            var selecteValue = RTVBankAccounts.SelectedValue;

            if (selecteValue == string.Empty)
            {
                RAM.Alert("请选择左边公司或资金账户!");
                return;
            }
            RadGridWasteBook.CurrentPageIndex = 0;
            RadGridWasteBook.Rebind();
        }
Beispiel #3
0
        //updata by liucaijun at 2010.07.22
        protected void LbUnverifyClick(object sender, EventArgs e)
        {
            if (lbUnverify.Text == ">>未审核单据")
            {
                lbUnverify.Text      = ">>已审核单据";
                CurrentAuditingState = AuditingState.No;
            }
            else
            {
                lbUnverify.Text      = ">>未审核单据";
                CurrentAuditingState = AuditingState.Yes;
            }

            //如果不是叶子节点,则搜索全部分支
            var selectedBankAccountsId = new Guid(RTVBankAccounts.SelectedValue);

            if (BankAccountsId != selectedBankAccountsId)
            {
                BankAccountsId = Guid.Empty;
            }
            RadGridWasteBook.Rebind();
        }