Example #1
0
 private void initVersion()
 {
     try
     {
         string   versions = ConfigurationManager.AppSettings["version"];
         string[] vs       = versions.Split(',');
         foreach (var v in vs)
         {
             string[] vd = v.Split('@');
             LicType.Add(vd[0]);
             dicVerdata.Add(vd[0], vd[1]);
         }
     }
     catch (Exception e)
     {
         MessageBox.Show("初始化程序失败,请检查配置文件是否正确!error:" + e.Message);
     }
 }
Example #2
0
        private bool GetLicData(oExcel.Worksheet oxlsheet)
        {
            LicType = SEFDataValidation.GetlicType(Convert.ToString(((oExcel.Range)oxlsheet.Cells[GrdRow, 3]).Text));

            //IssueDate

            ColoumName.Add("IssueDate", SEFDataValidation.RevDate(Convert.ToString(((oExcel.Range)oxlsheet.Cells[GrdRow, 2]).Text)));
            ColoumName.Add("OrderType", Convert.ToString(((oExcel.Range)oxlsheet.Cells[GrdRow, 3]).Text));
            OrderList.Add(LicType.ToString());
            OrderList.Add(Convert.ToString(((oExcel.Range)oxlsheet.Cells[GrdRow, 4]).Value2));
            //orderDate
            OrderList.Add(SEFDataValidation.RevDate(Convert.ToString(((oExcel.Range)oxlsheet.Cells[GrdRow, 5]).Text)));
            for (int x = 0; x < OrderList.Count; x++)
            {
                if (string.IsNullOrWhiteSpace(OrderList[x]) || string.IsNullOrEmpty(OrderList[x]))
                {
                    OrderList[x] = "0";
                }
            }
            return(true);
        }