示例#1
0
 public static string GetHtmlString(string id)
 {
     // here we can put some details as car is in own line (AVL.Controls.Map.Line.IsInTheLine).
     // Or geofence details with (AVL.Controls.Map.Line.IsInTheArea).
     AutomobileDefine.JAutomobileDefine a = new JAutomobileDefine();
     a.GetData(int.Parse(id));
     return(string.Format("<strong>{0}</strong>", a.Plaque));
 }
示例#2
0
        private void Load1(int pCode)
        {
            JAutomobileDefine Auto = new JAutomobileDefine();

            Auto.GetData(pCode);


            txtPlak1.Text = Auto.Plaque.Substring(0, 2);
            cmbPlak.Text  = Auto.Plaque.Substring(2, 1);
            txtPlak2.Text = Auto.Plaque.Substring(3, 3);
            txtPlak3.Text = Auto.Plaque.Substring(7, 2);
            cmbMakerCompany.SelectedValue = Auto.maker;
            txtCapacity.Text      = Auto.Capacity.ToString();
            txtModel.Text         = Auto.Model.ToString();
            cmbType.SelectedValue = Auto.Type;
            chkActive.Checked     = Auto.Active;

            jArchiveListCar.ObjectCode = pCode;
        }
示例#3
0
        public int Insert()
        {
            JAutomobileTable AT = new JAutomobileTable();

            AT.SetValueProperty(this);


            /*
             * AVL Project
             */
            if (AVL.Tools.IsAvlProject())
            {
                JAutomobileDefine au = new JAutomobileDefine();
                au.GetData(this.Plaque);
                if (au.Code < 1)
                {
                    Code = AT.Insert();
                    if (Code > 0)
                    {
                        InsertAVLObjecList();

                        return(Code);
                    }
                }
                else
                {
                    return(-1);
                }
            }
            /*		 */

            if (Find(Plaque))
            {
                Code = AT.Insert();
                return(Code);
            }
            return(0);
        }