Пример #1
0
        public ModuleObj QueryOracle(string lot)
        {
            string sql = new Jsonhelp().readjson("OracleSql", AppDomain.CurrentDomain.BaseDirectory + "config.json");

            sql = string.Format(sql, lot);

            var       dataReader = dbhelp.ExecuteReader(sql, null);
            ModuleObj obj        = new ModuleObj();

            if (dataReader.Read())
            {
                string moduletime = DateTime.Parse(dataReader["DTCR"].ToString()).ToString("yyyy-MM-dd");
                obj.ModuleDate  = moduletime;
                obj.CellDate    = DateTime.Parse(dataReader["CellDate"].ToString()).ToString("yyyy-MM-dd");;
                obj.Pmax        = dataReader["PMAX"].ToString();
                obj.Voc         = dataReader["RSVOC"].ToString();
                obj.Vmp         = dataReader["RSVPM"].ToString();
                obj.Imp         = dataReader["RSIPM"].ToString();
                obj.Isc         = dataReader["RSISC"].ToString();
                obj.FF          = dataReader["MODULE_EFF"].ToString();
                obj.ModuleID    = lot;
                obj.ProductType = dataReader["NAME_PLATE"].ToString();
            }
            return(obj);
        }
Пример #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            if (CheckLicense() == false)
            {
                MessageBox.Show("请升级软件"); return;
            }
            assemblyobj = CreateWc("http://10.60.3.27/PMSService/DataService.asmx");
            //初始化读取描述
            //获取间隔时间
            List <string> TimeList = new List <string>();

            string[] aryTime = new Jsonhelp().readjson("ReadTime", BasicConfigInfo.path).ToString().Split('|');
            foreach (var a in aryTime)
            {
                TimeList.Add(a);
            }
            ddlinternalTime.DataSource = TimeList;

            //初始化cefsharp
            try
            {
                DbUtility   dbhelp = new DbUtility(System.Configuration.ConfigurationManager.ConnectionStrings["cloudConn"].ToString(), DbProviderType.MySql);
                CefSettings seting = new CefSettings();
                //seting.CefCommandLineArgs.Add("disable-gpu", "1");
                //Cef.EnableHighDPISupport();
                Cef.Initialize(seting);
                String page = string.Format(@"{0}\IVCurve\IVCurve.html", Application.StartupPath);
                //ChromiumWebBrowser myBrowser = new ChromiumWebBrowser(page);
                myBrowser = new ChromiumWebBrowser(page);
                //this.Controls.Add(myBrowser);
                myBrowser.Dock = DockStyle.Fill;
                gbxCurve.Controls.Add(myBrowser);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
            //panel1.Controls.Add(myBrowser);
            objRFID = new UHFISO18000();
            string res = "";

            objRFID.Open(ref res);
            Log(res, 1);
        }
Пример #3
0
        public void ShowModuleIndo(ModuleObj obj)
        {
            var json = new Jsonhelp();
            var path = AppDomain.CurrentDomain.BaseDirectory + "config.json";

            txtCellDate.Text              = obj.CellDate;
            txtModuleDate.Text            = obj.ModuleDate;
            txtIECDate.Text               = json.readjson("IECDate", path);
            txtISO9001.Text               = json.readjson("ISO", path);
            txtCertificationProvider.Text = json.readjson("CertificationProvider", path);
            txtModuleCountry.Text         = json.readjson("Country", path);
            txtModuleCellSupplier.Text    = json.readjson("ModuleCellSupplier", path);
            txtIsc.Text         = obj.Isc;
            txtImp.Text         = obj.Imp;
            txtPmax.Text        = obj.Pmax;
            txtVmp.Text         = obj.Vmp;
            txtVoc.Text         = obj.Voc;
            txtFF.Text          = obj.FF;
            txtProductType.Text = obj.ProductType;
        }