protected void txtOrder_TextChanged(object sender, EventArgs e) { List <LC_OrderEntry> orders = new List <LC_OrderEntry>(); try { string OCODE = ((SessionUser)Session["SessionUser"]).OCode; string orderNo = txtOrder.Text; List <OrderUpdateRepository> ObjectsList = masterBLL.GetOrderByOrderNoandOcode(orderNo, OCODE).ToList(); if (ObjectsList.Count > 0) { foreach (OrderUpdateRepository order in ObjectsList) { hidorderid.Value = order.OrderEntryID.ToString(); txtCustomerStyle.Text = order.Style_Description; txtYarnFabrication.Text = order.Yarn_Fabrication; txtTotalAmount.Text = order.Total_Amount.ToString(); LoadBuyingDepartmentList(); ddlBuyerDepartment.SelectedValue = order.Buyer_DepartmentId.ToString(); GetOffice(); ddlTTOffice.SelectedValue = order.Office_ID.ToString(); GetMerchandiserDept(); ddlMerchandiserDept.SelectedValue = order.Merch_Dept_Id.ToString(); GetMerchandiserName(); ddlMerchandiserName.SelectedValue = order.EID; LoadPrincipalList(); ddlPrincipal.SelectedValue = order.Principal_Id.ToString(); LoadBuyerList(); ddlBuyer.SelectedValue = order.Buyer_Name; FillSeason(); ddlSeason.SelectedValue = order.Season_Id.ToString(); GetFactory(); ddlFactory.SelectedValue = order.FactoryId.ToString(); GetGenderList(); ddlGender.SelectedValue = order.Gender_Id.ToString(); GetUnit(); ddlUnit.SelectedValue = order.UnitId.ToString(); ddlStyle.SelectedValue = order.StyleId.ToString(); GetQuotaOrCategory(); ddlCategory.SelectedValue = order.Style_Category_Id.ToString(); ddlCurrency.SelectedItem.Text = order.Currency; txtFob.Text = Convert.ToString(order.FobQty); txtOrderQty.Text = Convert.ToString(order.OrderQuantity); txtFOBPort.Text = order.FOB_Port; txtCommissionPer.Text = order.CommissionPersent.ToString(); txtTotalCommission.Text = order.TotalCommission.ToString(); ddlShipmentMode.SelectedItem.Text = order.Shipment_Mode; InsertProductionProcess(); LoadProductionProccess(); } } } catch (Exception ex) { throw ex; } }
private void OrderNumberDetails() { List <LC_OrderEntry> ordels = new List <LC_OrderEntry>(); try { string OCODE = ((SessionUser)Session["SessionUser"]).OCode; string orderNo = txtOrder.Text; List <OrderUpdateRepository> orders = masterBLL.GetOrderByOrderNoandOcode(orderNo, OCODE); if (orders.Count > 0) { foreach (OrderUpdateRepository order in orders) { hidorderid.Value = order.OrderEntryID.ToString(); FillSeason(); //ddlSeason.SelectedValue = order.Season.ToString(); ddlSeason.SelectedItem.Text = order.Season; // txtOrder.Text = order.OrderNo; txtArticle.Text = order.Article; txtColor.Text = order.ColorSpecification; ddlStyle.SelectedItem.Text = order.Style; txtOrderQty.Text = order.OrderQuantity; txtFob.Text = Convert.ToString(order.FobQty); txtDate.Text = Convert.ToString(order.ShipmentDate); /// hidLcNo.Value = order.LCNo.ToString(); txtValue.Text = Convert.ToString(order.TotalQty); txtsize.Text = order.Size; txtSupplierNo.Text = order.Supplier_No; txtOrderReceivedDate.Text = Convert.ToString(order.OrderReceiveDate); txtBuyerDepartment.Text = order.Buyer_Department; txtDeliveryDate.Text = Convert.ToString(order.Delivery_Date); txtYarnFabrication.Text = order.Yarn_Fabrication; txtLCReceivedDate.Text = Convert.ToString(order.LC_Reveived_Date); ddlShipmentMode.SelectedItem.Text = order.Shipment_Mode; txtScheduleDate.Text = Convert.ToString(order.Schedule_Date); txtPreOrderNo.Text = order.Pre_OrderNo; txtFOBPort.Text = order.FOB_Port; //orderEdit.Visible = true; // LoadTask(); //hidRegionName.Value = txtbxRegionName.Text = region.RegionName; //txtbxResgionCode.Text = region.RegionCode; //if (btnSubmit.Text == "Add") //{ // btnSubmit.Text = "Update"; //} // InsertProductionProcess(); LoadTaskDetails(); } } } catch (Exception ex) { throw; } }
private void OrderNumberDetails() { List <LC_OrderEntry> orders = new List <LC_OrderEntry>(); try { string OCODE = ((SessionUser)Session["SessionUser"]).OCode; string orderNo = txtOrder.Text; List <OrderUpdateRepository> ObjectsList = masterBLL.GetOrderByOrderNoandOcode(orderNo, OCODE).ToList(); if (ObjectsList.Count > 0) { foreach (OrderUpdateRepository order in ObjectsList) { hidorderid.Value = order.OrderEntryID.ToString(); FillSeason(); //ddlSeason.SelectedValue = order.Season.ToString(); ddlSeason.SelectedItem.Text = order.Season_Name; txtStyle.Text = order.Style.ToString(); // txtOrder.Text = order.OrderNo; txtPrincpal.Text = order.Factory_Id.ToString(); txtTTOffice.Text = order.Office_Id.ToString(); txtMerchandiserDpt.Text = order.DepartmentName; txtMerchandiserName.Text = order.FullName.ToString(); //txtMerchandiserDpt.Text = order.Merchandiser_Dept_Id.ToString(); //txtMerchandiserName.Text = order.Merchandiser_Id.ToString(); txtBuyerDepartment.Text = order.BuyerDepartmetn.ToString(); txtBuyer.Text = order.Buyer_Id.ToString(); txtStylType.Text = order.Gender_Id.ToString(); txtQuota.Text = order.Category_Id.ToString(); txtCustom.Text = order.Style_Description.ToString(); txtTrading.Text = order.Trading.ToString(); txtQuotationTerms.Text = order.Quotation_Terms.ToString(); txtFreight.Text = order.Freight.ToString(); txtShipmentMode.Text = order.Shipment_Mode.ToString(); txtPaymentTerms.Text = order.PaymentTerms.ToString(); txtCountryProduction.Text = order.CountryOf_Production.ToString(); txtGarmentMaker.Text = order.Garment_Maker.ToString(); txtBuyerPrice.Text = order.FobQty.ToString(); txtCurrency.Text = order.Currency.ToString(); txtContractQty.Text = order.OrderQuantity.ToString(); txtUnit.Text = order.Unit_Id.ToString(); txtTotalAmount.Text = order.TotalAmount.ToString(); //ddlStyle.SelectedItem.Text = order.Style.ToString(); //txtOrderQty.Text = order.OrderQuantity; //txtFob.Text = Convert.ToString(order.FobQty); //txtDate.Text = Convert.ToString(order.ShipmentDate); // hidLcNo.Value = order.LCNo.ToString(); // txtValue.Text = Convert.ToString(order.TotalQty); // txtsize.Text = order.Size; //txtSupplierNo.Text = order.Supplier_No; // txtStyle.Text =order.Style.ToString(); // txtBuyerDepartment.Text = order.Buyer_Department; // txtDeliveryDate.Text = Convert.ToString(order.Delivery_Date); //txtYarnFabrication.Text = order.Yarn_Fabrication; //txtLCReceivedDate.Text = Convert.ToString(order.LC_Reveived_Date); // ddlShipmentMode.SelectedItem.Text = order.Shipment_Mode; // txtScheduleDate.Text = Convert.ToString(order.Schedule_Date); //txtTTOffice.Text = order.Office_ID.ToString(); //txtFOBPort.Text = order.FOB_Port; //orderEdit.Visible = true; // LoadTask(); //hidRegionName.Value = txtbxRegionName.Text = region.RegionName; //txtbxResgionCode.Text = region.RegionCode; //if (btnSubmit.Text == "Add") //{ // btnSubmit.Text = "Update"; //} InsertProductionProcess(); LoadTaskDetails(); } } } catch (Exception ex) { throw; } }