Beispiel #1
0
        public displayInfo GetDisplayInfo()
        {
            displayInfo temp = new displayInfo();

            temp.CurUser = this;
            temp.name    = this.getName();

            string Role = "";

            switch (grade)
            {
            case 2:
                Role = "Manager";
                break;

            case 1:
                Role = "Seller";
                break;

            case 0:
                Role = "Worker";
                break;
            }

            temp.Role = Role;
            temp.id   = this.getId();

            return(temp);
        }
        public displayInfo getDisplayInfo()
        {
            displayInfo dI = new displayInfo();

            dI.id           = getId();
            dI.price        = (this.getPrice() / 100).ToString("c2");
            dI.priceMul     = (this.getCat().getPriceMulDiv()).ToString("c2");
            dI.name         = getName();
            dI.BikeTemp     = this;
            dI.propKit      = getPropkitString();
            dI.KitTemplList = KitTemplList;
            return(dI);
        }
        public displayInfo GetDisplayInfo()
        {
            displayInfo temp = new displayInfo();

            temp.CurCatBike = this;
            temp.name       = this.getName();
            temp.PriceMul   = (((float)PriceMul) / 100).ToString("p");
            temp.id         = this.getId();
            temp.pic        = this.pic;

            temp.kitTemplates = this.getKitTemplateList();

            return(temp);
        }
        public displayInfo GetDisplayInfo()
        {
            displayInfo temp = new displayInfo();

            temp.CurCmd         = this;
            temp.id             = this.getId();
            temp.state          = this.getState();
            temp.client         = (Supplier)this.getClient();
            temp.seller         = this.getSeller();
            temp.sale_date      = this.getSaleDate().ToString("dd/MM/yyyy");
            temp.client_name    = this.getClient().getName();
            temp.prevision_date = this.getPreSaleDate().ToString("dd/MM/yyyy");
            temp.total          = ((float)this.getPrice() / 100).ToString("c2");
            return(temp);
        }
Beispiel #5
0
        public displayInfo GetDisplayInfo()
        {
            displayInfo temp = new displayInfo();

            temp.CurInstance = this;
            temp.name        = this.getName();
            temp.id          = this.getId();
            temp.etp_name    = this.getEtpName();
            temp.etp_adress  = this.getEtpAdress();
            temp.email       = this.getEmail();
            temp.phone_num   = this.getPhoneNumb();
            temp.insc_date   = this.getInscDate().ToString("yyyy-MM-dd");

            return(temp);
        }
        public displayInfo GetDisplayInfo()
        {
            displayInfo temp = new displayInfo();

            temp.curKit           = this;
            temp.id               = this.getId();
            temp.name             = this.getName();
            temp.category         = tools.Converter.GetCatName(cat);
            temp.price            = (((float)this.getPrice()) / 100).ToString("c2");
            temp.priceInt         = getPrice();
            temp.properties       = this.getProperties();
            temp.fancyName        = getPropkitString();
            temp.FullName         = getFullName();
            temp.BikeQtt_Name     = getBikeQtt() + " " + getFullName();
            temp.stock_qtt        = this.getStockQtt();
            temp.stock_location_x = this.getStockLocationX().ToString();
            temp.stock_location_y = this.getStockLocationY().ToString();
            temp.bike_qtt         = this.getBikeQtt();

            return(temp);
        }
Beispiel #7
0
        public displayInfo GetDisplayInfo()
        {
            displayInfo temp = new displayInfo();

            temp.CurBike = this;

            string state = "";

            switch (status)
            {
            case 0:
                state      = "Waiting";
                temp.color = (SolidColorBrush)(new BrushConverter().ConvertFrom("#8c6363"));
                break;

            case 1:
                state      = "In progress";
                temp.color = (SolidColorBrush)(new BrushConverter().ConvertFrom("#637B8C"));
                break;

            case 2:
                state      = "Done";
                temp.color = (SolidColorBrush)(new BrushConverter().ConvertFrom("#678c63"));
                break;
            }

            temp.state = state;

            temp.name        = BikeTemplate.getName();
            temp.id          = getId();
            temp.priceMul    = BikeTemplate.getCat().getPriceMulDiv();
            temp.id_sale     = this.getSaleId();
            temp.PlannedDate = this.getPlannedtDate().ToString("dd/MM/yyyy");
            temp.price       = ((float)BikeTemplate.getPrice() / 100).ToString("c2");
            temp.title       = "#" + getId().ToString() + " - " + BikeTemplate.getName();

            DateTime dt = getConstructionDate();

            return(temp);
        }
Beispiel #8
0
        public displayInfo GetSaleDisplayInfo()
        {
            displayInfo temp = new displayInfo();

            temp.CurSale   = this;
            temp.id        = this.getId();
            temp.state     = this.getState();
            temp.client    = (Client)this.getClient();
            temp.seller    = this.getSeller();
            temp.sale_date = this.getSaleDate().ToString("dd/MM/yyyy");
            if (this.getClient() != null)
            {
                temp.client_name = this.getClient().getName();
            }
            else
            {
                temp.client_name = "?";
            }

            temp.prevision_date = this.getPreSaleDate().ToString("dd/MM/yyyy");

            return(temp);
        }
Beispiel #9
0
 void Awake()
 {
     // Variables to hold the scripts on other game objects so that we can manipulate them from this script
     cam 		= holder.GetComponent <cameraScript> ();
     //chosen 		= holder.GetComponent <timeChanger> ();
     menu 		= holder.GetComponent <menuScript> ();
     message 	= text.GetComponent <uiSystem> ();
     mouse 		= pc.GetComponent <MouseLook> ();
     look 		= Camera.main.GetComponent <MouseLook> ();
     movement 	= pc.GetComponent <CharacterMotor> ();
     info 		= this.GetComponent <displayInfo> ();
     talk 		= pc.GetComponent <playerScript> ();
     pic 		= picture.GetComponent <pictureScript> ();
     cursor 		= gui.GetComponent <guiSystem> ();
 }
Beispiel #10
0
 void Awake()
 {
     // Variables to hold the scripts on other game objects so that we can manipulate them from this script
     cam 		= holder.GetComponent <cameraScript> ();
     //chosen 		= holder.GetComponent <timeChanger> ();
     menu 		= holder.GetComponent <menuScript> ();
     message 	= text.GetComponent <uiSystem> ();
     mouse 		= this.GetComponent <MouseLook> ();
     look 		= Camera.main.GetComponent <MouseLook> ();
     movement 	= this.GetComponent <CharacterMotor> ();
     talk 		= this.GetComponent <playerScript> ();
     core 		= Core.GetComponent <displayInfo> ();
     daphne		= Daphne.GetComponent <displayInfo> ();
     ic			= Core.GetComponent <icScript> ();
     scepter		= scepterBroken.GetComponent <displayInfo> ();
     okScepter	= Scepter.GetComponent <displayInfo> ();
     cursor		= gui.GetComponent <guiSystem> ();
 }