Ejemplo n.º 1
0
        private void LoadToolRackPopup(int toolInvId)
        {
            //get current station assignment
            Ebiz.Tids.CV.Models.ToolInventory ti = GetToolInventory(toolInvId);
            Session["ToolInventory"] = ti;

            if (ti != null && ti.RackId != null)
            {
                GetDDLToolRack(ti.RackId.Value);
            }
            else
            {
                GetDDLToolRack(0);
            }
        }
Ejemplo n.º 2
0
        private void LoadToolAssignmentPopup(int toolInvId)
        {
            //reset assignment
            cmbProductionLines.SelectedItem  = null;
            cmbAssemblySections.SelectedItem = null;
            cmbStations.SelectedItem         = null;

            //cmbProductionLines.DataBind();

            ////get current station assignment
            //ToolAssignmentStation tap = GetStationAssignment(toolInvId);
            //Session["ToolAssignmentStation"] = tap;

            Ebiz.Tids.CV.Models.ToolInventory ti = GetToolInventory(toolInvId);

            if (ti.AssemblyTypeId != null && ti.AssemblyTypeId.Value > 0 &&
                ti.ProductionLineId != null && ti.ProductionLineId.Value > 0 &&
                ti.AssemblySectionId != null && ti.AssemblySectionId.Value > 0 &&
                ti.StationId != null && ti.StationId.Value > 0)
            {
                GetDDLAssemblyTypes(ti.AssemblyTypeId.Value);
                GetDDLProductionLines(cmbAssemblyTypes.Value.ToInt32(0), ti.ProductionLineId.Value);
                GetDDLAssemblySections(cmbProductionLines.Value.ToInt32(0), ti.AssemblySectionId.Value);
                GetDDLStations(cmbAssemblySections.Value.ToInt32(0), ti.StationId.Value);

                txtSetNM.Value = ti.SetNM;
                GetCHKTypes(ti.Id);
            }
            else
            {
                GetDDLAssemblyTypes(PermissionHelper.GetCurrentAssemblyTypeId());
                GetDDLProductionLines(cmbAssemblyTypes.Value.ToInt32(0));
                GetDDLAssemblySections(cmbProductionLines.Value.ToInt32(0));
                GetDDLStations(cmbAssemblySections.Value.ToInt32(0));

                txtSetNM.Value = "";
                GetCHKTypes(0);
            }
        }