public NormalAddPage(IntPtr hwnd, Main_3C owner, string addText, Office.Excel.ForwardReadWorksheet sheet) { this.hwnd = hwnd; this.sheet = sheet; this.addText = addText; this.Main = owner; }
private void FillWorker(object state) { FillDialog_3C.BeginListen(); string windowType = null; FillDialog_3C fill = FillDialog_3C.GetFillDialog(out windowType); try { _fillParameters = this.ReadFillParameter(@"..\..\..\演示数据\CCC\CCC填报规则.xlsx"); TreeValue root = this.ReadData(DataFile); FillDialog_3C.BeginListen(); windowType = null; fill = FillDialog_3C.GetFillDialog(out windowType); if (fill != null) { if (windowType == CCCWindowType.LoginWindow) { fill.FillValue = _data["厂商关系"] as FillValue3C; fill.DoFillWork(_data["登录证书"]); } else if (windowType == CCCWindowType.FirmWindow) { FillValue3C value = _data["厂商关系"] as FillValue3C; fill.DoFillWork(value == null ? "" : value.Value); } } main = Main_3C.GetMainWindow(this.DataFile); //this.SetWindowPos(); main.FillParameters = this._fillParameters; this.GetTreeView(); main.TreeValue = root; while (main.SelectNextNode(true)) { main.FillPage(); } } catch { this.EndFill(); } }
public void EndFill() { try { NativeApi.SetWindowPos(main.HWnd, new IntPtr(1), 0, 0, 0, 0, 0x3); main.Dispose(); _fillThread.Abort(); } catch { } finally { _fillThread = null; main = null; _data.Clear(); container = IntPtr.Zero; FillDialog_3C.EndListen(); } }
public void GenerateDir() { if (main == null) { main = Main_3C.GetMainWindow(""); } if (main.TreeView.GetCount() == 0) { return; } TreeValue root = main.GetTreeStructure(); using (Office.Excel.ForwardExcelWriter writer = new Office.Excel.ForwardExcelWriter("目录字典.xlsx")) { writer.Open(); Office.Excel.ForwardWriteWorksheet sheet = writer.CreateWorksheet() as Office.Excel.ForwardWriteWorksheet; sheet.WriteNextRow(); sheet.WriteTextCell(1, writer.AddSharedString("Id")); sheet.WriteTextCell(2, writer.AddSharedString("目录名称")); sheet.WriteTextCell(3, writer.AddSharedString("父级目录Id")); WriteTreeDir(sheet, root); } }
public Page9_13_3(IntPtr hwnd, Main_3C owner, Office.Excel.ForwardReadWorksheet sheet) : base(hwnd, owner, "添加一排", sheet) { data = new Hashtable(); }
public NormalAddPage(IntPtr hwnd, Main_3C owner, Office.Excel.ForwardReadWorksheet sheet) : this(hwnd, owner, "添加一行", sheet) { }
public Page9_10_2_3(IntPtr hwnd, Main_3C owner, Office.Excel.ForwardReadWorksheet sheet) { this.hwnd = hwnd; this.sheet = sheet; this.Main = owner; }
public Page9_12_2(IntPtr hwnd, Main_3C owner, Office.Excel.ForwardReadWorksheet sheet) : base(hwnd, owner, "添加一排", sheet) { data = new List <Page9_12_2Value>(); }