예제 #1
0
 private void RefreshYuanXi()
 {
     Services.PublicClient service = new Services.PublicClient();
     string yuanxi = service.GetYuanXi();
     YuanXi = JsonConvert.DeserializeObject<DataTable>(yuanxi);
     service.Close();
 }
 private void RefreshZhuanYe(string code = "")
 {
     Services.PublicClient service = new Services.PublicClient();
     string zhuanye = service.GetLuQuZhuanYe(int.Parse(SystemConfig.CurrentYear), code);
     DataTable dt = LuQuZhuanYeDataTable = JsonConvert.DeserializeObject<DataTable>(zhuanye);
     dt.Rows.InsertAt(dt.NewRow(), 0);
     LuQuZhuanYeDataTable = dt;
     service.Close();
 }
 private void RefreshShengFen()
 {
     Services.PublicClient service = new Services.PublicClient();
     string shengfen = service.GetLuQuShengFen(int.Parse(SystemConfig.CurrentYear));
     DataTable dt = JsonConvert.DeserializeObject<DataTable>(shengfen);
     dt.Rows.InsertAt(dt.NewRow(), 0);
     ShengFenDataTable = dt;
     service.Close();
 }
 private void RefreshYuanXi()
 {
     Services.PublicClient service = new Services.PublicClient();
     string yuanxi = service.GetYuanXi();
     DataTable dt = JsonConvert.DeserializeObject<DataTable>(yuanxi);
     dt.Rows.InsertAt(dt.NewRow(), 0);
     YuanXiDataTable = dt;
     service.Close();
 }