public void ExportZu_FaRenDaiBiaoWeiTuoShu(IList <XZDM> xzdms, string bootDir) { List <MyAction> actions = ExportZu_FaRenDaiBiaoWeiTuoShuActions(xzdms, bootDir); SingleTaskForm task = new SingleTaskForm(actions, "法人代表授权委托书"); }
public void ExportZu_FaRenDaiBiaoShenFengZhengMing(IList <XZDM> xzdms, string bootDir) { List <MyAction> actions = ExportZu_FaRenDaiBiaoShenFengZhengMingActions(xzdms, bootDir); SingleTaskForm task = new SingleTaskForm(actions, "法人代表身份证明"); }
public void ExportCunYiJianFanKuaiShu(IList <XZDM> cunList, string bootDir) { IList <MyAction> actions = ExportCunYiJianFanKuaiShuActions(cunList, bootDir); SingleTaskForm task = new SingleTaskForm(actions, "集体土地所有权公告反馈意见书"); }
public void ExportZu_ZhongDiTu(IList <XZDM> xzdms, string bootDir) { List <MyAction> actions = ExportZu_ZhongDiTuActions(xzdms, bootDir); SingleTaskForm task = new SingleTaskForm(actions, "宗地图 "); }
public void ExportZu_QuanJiDiaoChaBiao(IList <XZDM> xzdms, string bootDir) { List <MyAction> actions = ExportZu_QuanJiDiaoChaBiaoActions(xzdms, bootDir); SingleTaskForm task = new SingleTaskForm(actions, "权籍调查表 "); }
public void ExportCun_GongGao(IList <XZDM> cunList, string bootDir) { IList <MyAction> actions = ExportCun_GongGaoActions(cunList, bootDir); SingleTaskForm task = new SingleTaskForm(actions, "村公告"); }
public void ExportCunJieGuo_GongShi(IList <XZDM> cunList, string bootDir) { IList <MyAction> actions = ExportCunJieGuo_GongShiActions(cunList, bootDir); SingleTaskForm task = new SingleTaskForm(actions, "村结果公示"); }
public void ExportZu_TuDiQuanShuLaiYuanZhengMing(IList <XZDM> xzdms, string bootDir) { IList <MyAction> actions = ExportZu_TuDiQuanShuLaiYuanZhengMingActions(xzdms, bootDir); SingleTaskForm task = new SingleTaskForm(actions, "土地权属来源证明"); }
/// <summary> /// 生成集体土地所有权证 /// </summary> public void CreateJTTDSYQZ_doc(string excelPath, string saveDir) { if (Utils.CheckFileExists(excelPath) && Utils.CheckDirExists(saveDir)) { List <MyAction> actions = new List <MyAction>(); IList <JTTDSYQZ> jtsyqzs = JTTDSYQZCustom.GetJTTDSYQZS(excelPath); Dictionary <string, XMLObject> xmlObjectDic = XMLRead.XmlToObjects_get <JTTDSYQZ> (); foreach (JTTDSYQZ jtsyqz in jtsyqzs) { Action action = new Action(() => { string th = jtsyqz.TuHao; if (th != null) { string[] array = th.Split('、'); if (array.Length > 2) { jtsyqz.TuHao = array[0] + "、" + array[1]; string th1 = ""; for (int a = 2; a < array.Length; a++) { if (a % 2 == 0) { th1 = th1 + "" + array[a]; } else { th1 = th1 + "、" + array[a]; } } jtsyqz.TH1 = th1; } } XWPFDocument docx = WordRead.Read(JTTDSYQZCustom.DocxTemplete); WordWrite.ReplaceText(docx, xmlObjectDic, jtsyqz); WordWrite.SaveToFile(docx, saveDir + "\\" + jtsyqz.DH + "_" + jtsyqz.DZ.Replace("中江县", "") + ".docx"); }); MyAction myAction = new MyAction(action, jtsyqz.DH + "_" + jtsyqz.DZ.Replace("中江县", "") + ".docx"); actions.Add(myAction); //break; } SingleTaskForm task = new SingleTaskForm(actions, "生成中江档案封面 "); } }
/// <summary> ///多个 excel 转出宅基地shp /// </summary> /// <param name="paths"></param> public void ExcelToShp(IList <string> paths) { List <MyAction> actions = new List <MyAction>(); foreach (string path in paths) { Action action = new Action(() => { ExcelToShp(path); }); MyAction myAction = new MyAction(action, path + " SHP转换 "); actions.Add(myAction); } SingleTaskForm task = new SingleTaskForm(actions, "SHP转换 "); }
public void DeleteJZD(IList <JTSYQ> jtsyqs) { IList <MyAction> actions = new List <MyAction>(); //本组可能是多部件 foreach (JTSYQ jtsyq in jtsyqs) { Action action = new Action(() => { foreach (JTSYQ child in jtsyq.GroupJTSYQ) { JTSYQDao.DeleteJZD(child.JZDS); } }); MyAction myAction = new MyAction(action, jtsyq.QLR + "界址点删除"); actions.Add(myAction); } SingleTaskForm task = new SingleTaskForm(actions, "界址点删除"); }
public void JZDBM(IList <JTSYQ> jtsyqs) { IList <MyAction> actions = new List <MyAction>(); //本组可能是多部件 foreach (JTSYQ jtsyq in jtsyqs) { Action action = new Action(() => { int index = 1; foreach (JTSYQ child in jtsyq.GroupJTSYQ) { index += JTSYQDao.JZDBM(index, child, JZDCustom.GetJZDLayer()); } }); MyAction myAction = new MyAction(action, jtsyq.QLR + "界址点编码"); actions.Add(myAction); } SingleTaskForm task = new SingleTaskForm(actions, "界址点编码"); }
/// <summary> /// 本地打印 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void LocalPrint_Click(object sender, RoutedEventArgs e) { IList <PrintFileModel> files = addFilePagerPage.GetChekedAll(); if (files.Count > 0 && MessageBoxCustom.MessageBoxShow("确要打印:" + files.Count + " 个文件吗?", false, Visibility.Visible)) { IList <MyAction> actions = new List <MyAction>(); foreach (PrintFileModel model in files) { MyAction myAction = new MyAction(new Action(() => { for (int a = 0; a < model.PrintCount; a++) { PrintUtils.RelativePrint(model.FilePath); model.IsPrintOver = true; } }), model.Name + model.Extension); actions.Add(myAction); } SingleTaskForm singleTaskForm = new SingleTaskForm(actions); } }
public void ExtractJZD_Intersectant(IList <JTSYQ> jtsyqs) { //拿到图上所有界址点 //Dictionary<string, IList<JZD>> jzdDic = JTSYQDao.GetMapJZDS(); IList <MyAction> actions = new List <MyAction>(); IList <JZD> jzds; foreach (JTSYQ jtsyq in jtsyqs) { //jzdDic.TryGetValue("", out jzds); Action action = new Action(() => { foreach (JTSYQ child in jtsyq.GroupJTSYQ) { IList <JZD> newJzds = JTSYQDao.ExtractJZD_Intersectant(child, null); } }); MyAction myAction = new MyAction(action, jtsyq.QLR + "提取界址点"); actions.Add(myAction); } SingleTaskForm task = new SingleTaskForm(actions, "提取界址点"); }
private void Check_Click(object sender, RoutedEventArgs e) { List <MyAction> actions = new List <MyAction>(); SoftwareConfig.SaveRedis(JTSYQCheckDataViewModel.RedisKey, model); IList <JTSYQ> jtsyqs = MainWindow.mainWindow.GetSelectJTSYQS(); if (!MyUtils.Utils.CheckListExists(jtsyqs)) { MessageBox.Show("你还没有选择行政区!!!"); return; } if (model.BasicData) { actions.AddRange(JTSYQCustom.CheckDataActions(jtsyqs)); } if (model.Angle) { actions.AddRange(JTSYQCustom.CheckAngle(jtsyqs, model.AngleValue)); } SingleTaskForm taskForm = new SingleTaskForm(actions, "检查"); }
public void ExportJZDTable(IList <JTSYQ> jtsyqs, string bootDir) { IList <MyAction> actions = ExportJZDTableActions(jtsyqs, bootDir); SingleTaskForm task = new SingleTaskForm(actions, "导出界址点成果表"); }
public void ExportZu_ShenPiBiao(IList <XZDM> xzdms, string bootDir) { List <MyAction> actions = ExportZu_ShenPiBiaoActions(xzdms, bootDir); SingleTaskForm task = new SingleTaskForm(actions, "审批表"); }
public void ExportZu_ZhiJieRenShenFengZhengMing(IList <XZDM> xzdms, string bootDir) { List <MyAction> actions = ExportZu_ZhiJieRenShenFengZhengMingActions(xzdms, bootDir); SingleTaskForm task = new SingleTaskForm(actions, "指界人证明"); }
public void ExportCunDangAnDai(IList <XZDM> cunList, string bootDir) { IList <MyAction> actions = ExportCunDangAnDaiActions(cunList, bootDir); SingleTaskForm task = new SingleTaskForm(actions, "导出村档案袋"); }
/// <summary> /// 导出checkbox 中的资料 /// </summary> /// <param name="model"></param> /// <param name="xzdms"></param> public void Export(ExportDataPageViewModel model, IList <XZDM> xzdms) { //更新数据 IList <XZDM> cunXZDM = new List <XZDM>(); IList <XZDM> zuXZDM = new List <XZDM>(); IList <JTSYQ> groupJTSYQ = new List <JTSYQ>(); //IList<JTSYQ> foreach (XZDM xzdm in xzdms) { string bm = xzdm.DJZQDM; if (bm.Length == 14) { zuXZDM.Add(xzdm); } else { cunXZDM.Add(xzdm); } if (xzdm.JTSYQ != null) { Dictionary <string, IList <JZD> > jzdDic = MyUtils.Utils.GetGroupDicToList("JTSYQOBJECTID", JZDCustom.GetMapJZD()); IList <JZD> jzds; groupJTSYQ.Add(xzdm.JTSYQ); foreach (JTSYQ child in xzdm.JTSYQ.GroupJTSYQ) { if (jzdDic.TryGetValue(child.OBJECTID + "", out jzds)) { if (jzdDic.TryGetValue(child.OBJECTID + "", out jzds)) { //注入界址点 child.JZDS = jzds; } } } //设置包含的面积 } } List <MyAction> actions = new List <MyAction>(); if (model.Cun_JiTiTuDiDiaoChaBiao || model.Zu_QuanJiDiaoChaBiao || model.Zu_ShengPiBiao) { actions.Add(new MyAction(new Action(() => { foreach (JTSYQ jtsyq in groupJTSYQ) { JTSYQCustom.SetContainsFeatureArea(jtsyq); } }), "刷新包含的二调面积")); } string saveDir = model.SaveDir + "\\"; if (model.Zu_DangAnDai) { actions.AddRange(ExportZu_DangAnDaiActions(groupJTSYQ, saveDir)); } if (model.Zu_TuDiQuanShuZhengMing) { actions.AddRange(ExportZu_TuDiQuanShuLaiYuanZhengMingActions(xzdms, saveDir)); } if (model.Zu_FaRenDaiBiaoZhengMing) { actions.AddRange(ExportZu_FaRenDaiBiaoShenFengZhengMingActions(xzdms, saveDir)); } if (model.Zu_FaRenDaiBiaoWeiTuoShu) { actions.AddRange(ExportZu_FaRenDaiBiaoWeiTuoShuActions(xzdms, saveDir)); } if (model.Zu_ZhiJieRenZhengMing) { actions.AddRange(ExportZu_ZhiJieRenShenFengZhengMingActions(xzdms, saveDir)); } if (model.Zu_ShengPiBiao) { actions.AddRange(ExportZu_ShenPiBiaoActions(xzdms, saveDir)); } if (model.Zu_JieZhiDianChengGuoBiao) { actions.AddRange(ExportJZDTableActions(groupJTSYQ, saveDir)); } if (model.Zu_QuanJiDiaoChaBiao) { actions.AddRange(ExportZu_QuanJiDiaoChaBiaoActions(xzdms, saveDir)); } if (model.Zu_RuKuDanZhongDiBiao) { actions.AddRange(ExportZu_ZhongDiBiaoActions(xzdms, saveDir)); } if (model.Zu_ZhongDiTu) { actions.AddRange(ExportZu_ZhongDiTuActions(xzdms, saveDir)); } if (model.Cun_DangAnDai) { actions.AddRange(ExportCunDangAnDaiActions(cunXZDM, saveDir)); } if (model.Cun_GongGaoFanKuiYiJianShu) { actions.AddRange(ExportCunYiJianFanKuaiShuActions(cunXZDM, saveDir)); } if (model.Cun_GongShiFanKuiYiJianShu) { actions.AddRange(ExportCunYiJianFanKuaiShu_GongShiActions(cunXZDM, saveDir)); } if (model.Cun_QueQuanJieGuoGongGao) { actions.AddRange(ExportCunJieGuo_GongGaoActions(cunXZDM, saveDir)); } if (model.Cun_QueQuanJieGuoGongShi) { actions.AddRange(ExportCunJieGuo_GongShiActions(cunXZDM, saveDir)); } if (model.Cun_GongGaoBiao) { actions.AddRange(ExportCun_GongShiActions(cunXZDM, saveDir)); } if (model.Cun_GongShiBiao) { actions.AddRange(ExportCun_GongGaoActions(cunXZDM, saveDir)); } if (model.Cun_JiTiTuDiDiaoChaBiao) { actions.AddRange(ExportCun_JiTiTuDiDiaoChaBiaoActions(cunXZDM, zuXZDM, saveDir)); } if (model.Cun_GongShiTu) { actions.AddRange(ExportCun_GongShiTuActions(cunXZDM, saveDir)); } SingleTaskForm task = new SingleTaskForm(actions, "导表"); }
public void ExportZu_DangAnDai(IList <JTSYQ> jtsyqGruop, string bootDir) { IList <MyAction> actions = ExportZu_DangAnDaiActions(jtsyqGruop, bootDir); SingleTaskForm task = new SingleTaskForm(actions, "导出组档案袋"); }