public void clearForm()
 {
     ForecastingHead.clearData();
     ForecastingPart.clearForm();
     ForecastingPart.GVPartData = new OrderDetails();
     if (divref1.Visible)
     {
         setReferenceTextBox(RefrenceControl1, string.Empty);
     }
     if (divref2.Visible)
     {
         setReferenceTextBox(RefrenceControl2, string.Empty);
     }
     if (divref3.Visible)
     {
         setReferenceTextBox(RefrenceControl3, string.Empty);
     }
     if (divref4.Visible)
     {
         setReferenceTextBox(RefrenceControl4, string.Empty);
     }
     if (divref5.Visible)
     {
         setReferenceTextBox(RefrenceControl5, string.Empty);
     }
     if (divref6.Visible)
     {
         setReferenceTextBox(RefrenceControl6, string.Empty);
     }
     Action = Constants.InsertAction;
 }
        protected void FillForm(object sender, EventArgs e)
        {
            var FRNumber      = ForecastingGridViewListControl.OrderNumber;
            var amndNo        = ForecastingGridViewListControl.Amdno;
            var queryArgument = new QueryArgument(UserContext.DataBaseInfo)
            {
                Key       = FRNumber,
                filter1   = amndNo,
                filter2   = Constants.TRNLogedOFF,
                filter4   = Constants.RetriveForm,
                FilterKey = Constants.TableOrderDetail
            };
            var orderTxn       = _transactionManager.GetOrderData(queryArgument);
            var firstOrDefault = orderTxn.FirstOrDefault();

            if (firstOrDefault == null)
            {
                return;
            }
            ForecastingHead.clearData();
            firstOrDefault.orderHead.OrderAmendmentNumber = (firstOrDefault.orderHead.OrderAmendmentNumber.ToInt() + 1).ToString();
            ForecastingHead.SetData(firstOrDefault.orderHead);
            ForecastingPart.clearForm();
            ForecastingPart.GVPartData = firstOrDefault.orderDetails;
            Action = Constants.InsertAction;
            fillReferences();
            uplView.Update();
            DivAction = true;
        }
Example #3
0
        protected void Addclick(object sender, EventArgs e)
        {
            ForecastingPart.addSqty();
            ForecastingPart.clearForm();
            // ForecastingPart.changepartddlIndex();
            //  ForecastingPart.RetriveDatabasedonPart();

            uplView.Update();
        }
Example #4
0
        public void fillForm()
        {
            var partNumber    = ForecastingGridViewListControl.OrderNumber;
            var FcDtlNo       = ForecastingGridViewListControl.Amdno;
            var queryArgument = new QueryArgument(UserContext.DataBaseInfo)
            {
                Key       = StageType == Constants.BillTrackingType && FilterOrder == Constants.PendingOrder ? FcDtlNo : partNumber,
                filter1   = StageType == Constants.BillTrackingType ? Constants.TRNLogedOFF + "," + Constants.TRNInProcessOFF + "," + Constants.TRNCompletedOFF : Constants.TRNLogedOFF,
                filter2   = CategoryType,
                filter3   = ForecastingGridViewListControl.Ddl1.SelectedValue.Trim(),
                filter4   = Constants.RetriveForm,
                FilterKey = StageType == Constants.BillTrackingType && FilterOrder == Constants.PendingOrder ? Constants.FlolloupPendingFollowup : Constants.TableFolloup
            };

            var orderTxn = new OrderTransactions();

            if (StageType == Constants.BillTrackingType && FilterOrder == Constants.PendingOrder)
            {
                orderTxn = _transactionManager.GetpPendingFollowupData(queryArgument);
            }
            else
            {
                orderTxn = _transactionManager.GetFollowupData(queryArgument);
            }

            var firstOrDefault = orderTxn.FirstOrDefault();

            if (firstOrDefault == null)
            {
                fillHeaderGrid();
                DiVSave = false;
                ScriptManager.RegisterStartupScript(Page, typeof(Page), "openTabFunctionCall", "openTab(1)", true);
                return;
            }
            OrderTransactionsData = orderTxn;
            ForecastingHead.clearData();
            ForecastingHead.SubIdLabel      = StageType == Constants.BillTrackingType ? Constants.SRHeader : Constants.FRHeader;
            ForecastingHead.IsEnableSubId   = false;
            ForecastingHead.IdLabel         = Constants.ForcastingHeader;
            ForecastingHead.IsVisiableSubId = true;
            ForecastingHead.SetData(firstOrDefault.orderHead);
            ForecastingHead.IsEnableLocation = false;
            ForecastingPart.clearForm();
            ForecastingPart.InputDivFalse        = false;
            ForecastingPart.StatusOrderNoDivTrue = true;
            ForecastingPart.changeActionName     = Constants.UpdateAction;
            ForecastingPart.IsVisiableCell(10, true);
            ForecastingPart.GVPartData = firstOrDefault.orderDetails;
            Action = Constants.InsertAction;
            ForecastingEditPart.clearForm();

            uplView.Update();
            DiVSave = true;
        }
        protected void FillForm(object sender, EventArgs e)
        {
            var partNumber    = ForecastingGridViewListControl.OrderNumber;
            var amndNo        = ForecastingGridViewListControl.Amdno;
            var queryArgument = new QueryArgument(UserContext.DataBaseInfo)
            {
                Key       = partNumber,
                filter1   = amndNo,
                filter2   = Constants.TRNLogedOFF + "," + Constants.TRNInProcessOFF,
                filter4   = Constants.RetriveForm,
                FilterKey = Constants.TableOrderDetail
            };
            var orderTxn       = _transactionManager.GetOrderData(queryArgument);
            var firstOrDefault = orderTxn.FirstOrDefault();

            if (firstOrDefault == null)
            {
                return;
            }
            ForecastingHead.clearData();
            ForecastingHead.SetData(firstOrDefault.orderHead);
            ForecastingHead.IsEnableLocation = false;

            ForecastingPart.clearForm();
            ForecastingPart.IsEnablePartType     = false;
            ForecastingPart.StatusOrderNoDivTrue = true;
            ForecastingPart.GVPartData           = new OrderDetails();

            var keyValuePairItems = new KeyValuePairItems();

            keyValuePairItems.AddRange(firstOrDefault.orderDetails.Select(row => new KeyValuePairItem(row.PartDetail.PartNumber.Trim().ToUpper() + " " + Constants.SpecialCharApprox + " " + row.PartDetail.Description.Trim(),
                                                                                                      row.PartDetail.PartNumber.Trim().ToUpper())));
            ForecastingPart.fillDdl(ForecastingPart.PartControl as DropDownList, keyValuePairItems);

            ForecastingPart.OrderDetailData = firstOrDefault.orderDetails;
            Action = Constants.InsertAction;
            uplView.Update();
            DivAction = true;
        }
 protected void Addclick(object sender, EventArgs e)
 {
     ForecastingPart.clearForm();
     //ForecastingPart.changepartddlIndex();
     //BindPartsDetail();
 }