コード例 #1
0
        public void fillHeaderGrid()
        {
            var queryArgument = new QueryArgument(UserContext.DataBaseInfo)
            {
                filter1   = Constants.TRNInProcessOFF,
                filter2   = Constants.PurchaseRequestTdType,
                FilterKey = Constants.TableFolloupApprove
            };
            var orderTxn = _transactionManager.GetFollowupDataForApprove(queryArgument);
            KeyValuePairItems headers = new KeyValuePairItems();

            headers.Add(new KeyValuePairItem("1", Constants.ForcastingHeader));
            headers.Add(new KeyValuePairItem("2", Constants.FRHeader));
            ForecastingGridViewListControl.GVHeaders = headers;
            ForecastingGridViewListControl.IsVisiableColumn(2, true);
            ForecastingGridViewListControl.IsVisiableColumn(6, true);
            ForecastingGridViewListControl.IsVisiableColumn(7, true);
            ForecastingGridViewListControl.IsVisiableColumn(8, true);
            ForecastingGridViewListControl.IsVisiableColumn(9, true);
            ForecastingGridViewListControl.IsVisiableColumn(10, true);
            ForecastingGridViewListControl.changeActionName = Constants.ApproveAction;

            ForecastingGridViewListControl.OrderTxns = orderTxn;
            uplForm.Update();
        }
コード例 #2
0
        //protected void ddl2_SelectedIndexChanged(object sender, EventArgs e)
        //{
        //    fillHeaderGrid();
        //}
        public void fillHeaderGrid()
        {
            var orderTxn = new OrderTransactions();

            if (FilterOrder == Constants.FreshOrder)
            {
                var queryArgument = new QueryArgument(UserContext.DataBaseInfo)
                {
                    Key     = StageType == Constants.BillTrackingType ? Constants.SaleRequestTdType : Constants.PurchaseRequestTdType,
                    filter1 = StageType == Constants.BillTrackingType ? Constants.TRNLogedOFF + "," + Constants.TRNInProcessOFF + "," + Constants.TRNCompletedOFF : Constants.TRNLogedOFF,
                    filter2 = CategoryType,
                    filter3 = ForecastingGridViewListControl.Ddl1.SelectedValue.Trim(),
                    filter4 = string.IsNullOrEmpty(ForecastingGridViewListControl.Text1Value) ? Constants.RetriveList :
                              string.Format("{0}|{1}", ForecastingGridViewListControl.Text1Value, Constants.RetriveList),
                    //filter5 = StageType == Constants.BillTrackingType ? ForecastingGridViewListControl.Ddl2.SelectedValue.Trim() : string.Empty,
                    FilterKey = Constants.TableFolloup
                };
                orderTxn = _transactionManager.GetFollowupData(queryArgument);
            }
            else
            {
                var queryArgument = new QueryArgument(UserContext.DataBaseInfo)
                {
                    filter2 = CategoryType,
                    filter3 = ForecastingGridViewListControl.Ddl1.SelectedValue.Trim(),
                    filter4 = string.IsNullOrEmpty(ForecastingGridViewListControl.Text1Value) ? Constants.RetriveList :
                              string.Format("{0}|{1}", ForecastingGridViewListControl.Text1Value, Constants.RetriveList),
                    FilterKey = Constants.FlolloupPendingFollowup
                };
                orderTxn = _transactionManager.GetpPendingFollowupData(queryArgument);
            }

            KeyValuePairItems headers = new KeyValuePairItems();

            headers.Add(new KeyValuePairItem("1", Constants.ForcastingHeader));
            if (StageType == Constants.BillTrackingType)
            {
                headers.Add(new KeyValuePairItem("2", Constants.SRHeader));
                if (FilterOrder == Constants.PendingOrder)
                {
                    headers.Add(new KeyValuePairItem("5", Constants.StatusHeader));
                }
                else
                {
                    headers.Add(new KeyValuePairItem("5", Constants.ReqLocHeader));
                }
            }
            else
            {
                headers.Add(new KeyValuePairItem("2", Constants.FRHeader));
            }
            ForecastingGridViewListControl.GVHeaders = headers;
            ForecastingGridViewListControl.IsVisiableColumn(2, true);

            ForecastingGridViewListControl.OrderTxns = orderTxn;
            uplForm.Update();
        }