Exemplo n.º 1
0
        public frmMoveScreen(Part part, IPartManager partManager)
        {
            InitializeComponent();

            _part        = part;
            _partManager = partManager;
            _moveMode    = false;
        }
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            iSelectData = ServiceAgent.getInstance().GetMaintainObjectByName<IPartManager>(WebConstant.IPartManager);

            if (!this.IsPostBack)
            {
                if (isPercentage)
                {
                    if (Convert.ToInt32(width) > 100)
                    {
                        drpMaintainPartNodeType.Width = Unit.Percentage(100);
                    }
                    else
                    {
                        drpMaintainPartNodeType.Width = Unit.Percentage(Convert.ToDouble(width));
                    }
                }
                else
                {
                    drpMaintainPartNodeType.Width = Unit.Parse(width);
                }

                this.drpMaintainPartNodeType.CssClass = cssClass;
                this.drpMaintainPartNodeType.Enabled = enabled;

                if (enabled)
                {
                    initMaintainPartType();
                }
                else
                {
                    this.drpMaintainPartNodeType.Items.Add(new ListItem("", ""));
                }
            }
        }
        catch (FisException ex)
        {
            showCmbErrorMessage(ex.mErrmsg);
        }
        catch (Exception ex)
        {
            showCmbErrorMessage(ex.Message);
        }
    }
Exemplo n.º 3
0
 public PartController(UserManager <AppUser> userManager, IAdminLogger logger, IPartManager mgr) : base(userManager, logger)
 {
     _mgr = mgr;
 }
Exemplo n.º 4
0
    public void initCode()
    {
        ipart = ServiceAgent.getInstance().GetMaintainObjectByName<IPartManager>(WebConstant.IPartManager);
        this.drpMBTestCode.Items.Clear();

        IList<string> lstCode = new List<string>();
        if (systemType != null && systemType == "MTDK004")
        {
            lstCode = ipart.GetPartInfoValueByPartDescr(family, "MB", "", "");
        }
        else
        {
            lstCode = ipart.GetPartInfoValueByPartDescr(family, "MB", "MAC", "T");
        }
            if (lstCode != null && lstCode.Count > 0)
            {
               initControl(lstCode);
            }
       
    }
 public RecievingController(IPartManager partManager)
 {
     _partManager = partManager;
 }
 public RecievingController()
 {
     _partManager = new PartManager();
 }
 public InventoryController()
 {
     _partManager = new PartManager();
 }
 public MainWindow()
 {
     InitializeComponent();
     _userManager = new UserManager();
     _partManager = new PartManager();
 }
Exemplo n.º 9
0
 public frmUpdatePart(Part part, IPartManager partManager)
 {
     InitializeComponent();
     _part        = part;
     _partManager = partManager;
 }
 //Construct Dependency Resolving using Unity
 public ActionController(IPartManager partManagerService, ISecurity securityService)
 {
     this.partManagerService = partManagerService;
     this.securityService    = securityService;
 }