public List <Barang> GetAllDataBarang() { List <Barang> listData = null; try { using (SqlCommand cmd = new SqlCommand()) { cmd.Connection = _conn; cmd.CommandText = @"select * from barang order by kode"; using (SqlDataReader reader = cmd.ExecuteReader()) { if (reader.HasRows) { listData = new List <Barang>(); while (reader.Read()) { listData.Add(new Barang { Kode = reader["Kode"].ToString(), << << << < HEAD Nama = reader["Nama"].ToString(), == == == = Nama = reader["Nama"].ToString(), >> >> >> > 2a9a7c2e189b5630cdc2f39ea8039326062a7940 Harga = Convert.ToDecimal(reader["Harga"].ToString()), Quantity = Convert.ToInt32(reader["Quantity"].ToString()), Pajak = reader["Pajak"].ToString() }); }
public static ArrayList query_order(CmsForm cmsForm, string cookie, int queryType) { ArrayList arrayLists = new ArrayList(); try { int days = 2; days = cmsForm.appBean.ali_order_days; string startTime = DateTime.Now.AddDays(-days).ToString("yyyy-MM-dd"); string endTime = DateTime.Now.ToString("yyyy-MM-dd"); DateTime now = DateTime.Now; string str = string.Concat("temp", now.ToString("yyyyMMddHHmmss"), ".xls"); string str1 = string.Concat(cmsForm.app_path, "\\config\\", str); if (File.Exists(str1)) { File.Delete(str1); } int type = 1; string str2 = "http://pub.alimama.com/report/getTbkPaymentDetails.json?queryType=1&payStatus=&DownloadID=DOWNLOAD_REPORT_INCOME_NEW&startTime={startTime}&endTime={endTime}"; if (queryType == 1) { str2 = "http://pub.alimama.com/report/getTbkPaymentDetails.json?queryType=3&payStatus=3&DownloadID=DOWNLOAD_REPORT_INCOME_NEW&startTime={startTime}&endTime={endTime}"; } if (queryType == 2) { << << << < HEAD type = 0;
public TodoAroundDbContext(DbContextOptions <TodoAroundDbContext> options) : base(options) { for (var i = 0; i < 10; i++) { Offers.Add(new OfferEntity() { Description = $"Offer {i}", Id = Guid.NewGuid(), Price = i * 100, Title = $"Title {i}", UserId = Guid.Empty, << << << < HEAD CreationDate = DateTime.Now, ExpirationDate = DateTime, Negotiable = bool, latMin = double, latMax = double, lngMin = double, lngMax = double, == == == = Lat = i, Lng = i, CreationDate = DateTime.Now, ExpirationDate = DateTime.Now.AddDays(7), Negotiable = true >> >> >> > 259871b327648976f2d67822e4bf12cc6466b45e });
public DrawingCLI() { // TODO 06 Add "Add a Text object" to the menu and handle the choice (call AddText) // TODO 08 Add "Get total area" to the menu (call ShowTotalArea) this.AddOption("Add a Circle", AddCircle) .AddOption("Add a Rectangle", AddRectangle) .AddOption("Add Text", AddText) .AddOption("Draw the Canvas", DrawCanvas) .AddOption("List All Shapes", ListShapes) <<<<<<< HEAD .AddOption("Get Total Area", GetTotalArea) ======= .AddOption("Get Total Area of All Shapes", GetTotalArea) >>>>>>> 2a35320594bb288d1ed7d189c85c5727f0bfcad4 .AddOption("Clear the Canvas", ClearCanvas) .AddOption("Quit", Exit, "Q") .Configure(cfg => { cfg.Title = "Shapes! Drawing Program"; cfg.ItemForegroundColor = ConsoleColor.Yellow; cfg.SelectedItemForegroundColor = ConsoleColor.Green; cfg.MenuSelectionMode = MenuSelectionMode.Arrow; }); }
public App(SimpleContainer container) { this.container = container; MobileServiceClient client = new MobileServiceClient(MobileServicesUri, MobileServicesAppKey); container .PerRequest <DetailViewModel>() << << << < HEAD == == == = .PerRequest <TabbedView>() .PerRequest <LeaderViewModel>() .PerRequest <CluesViewModel>() .PerRequest <DetailViewModel>() .PerRequest <MapViewModel>() << << << < HEAD .PerRequest <TeamViewModel>() >> >> >> > 95551d 7...j3 == == == = .PerRequest <LoginViewModel>() << << << < HEAD >> >> >> > 3476c60...Login view shows == == == = .PerRequest <BaseViewModel>() >> >> >> > 0938cc6...Login functionality ; container.Singleton <ISettingsService, SettingsService>(); container.Instance <IMobileServiceClient>(client); container.Singleton <IAuthenticationService, AuthenticationService>(); container.Singleton <IDataService, DataService>(); DisplayRootView <LoginView>(); //DisplayRootView<TabbedView>(); }
protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "3.1.6") .HasAnnotation("Relational:MaxIdentifierLength", 128) .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); modelBuilder.Entity("Account.Data.Entities.Account", b => { b.Property <Guid>("AccountId") .ValueGeneratedOnAdd() << << << < HEAD .HasColumnType("uniqueidentifier"); b.Property <int>("Balance") .ValueGeneratedOnAdd() .HasColumnType("int") .HasDefaultValue(1000); == == == = .HasColumnType("uniqueidentifier") .HasDefaultValue(new Guid("608d62d2-a2e1-4890-9275-8bbae91bee15")); b.Property <double>("Balance") .ValueGeneratedOnAdd() .HasColumnType("float") .HasDefaultValue(1000.0);
public static void GetBytesObject(byte[] buf, object anything, ref uint index, uint nSize) { try { #region HEAD if (anything is HEAD) { HEAD Hd = anything as HEAD; Hd.STX = TcpUtil.ConvertByte(buf, ref index); // Hd.Version = TcpUtil.ConvertByte(buf, ref index); // Hd.DeviceID = TcpUtil.ConvertUShort(buf, ref index); Hd.opcode = TcpUtil.ConvertByte(buf, ref index); // Hd.Reserved = TcpUtil.ConvertByte(buf, ref index); Hd.Length = TcpUtil.ConvertUShort(buf, ref index); } #endregion #region TAIL if (anything is TAIL) { TAIL Tl = anything as TAIL; // Tl.Reserved = TcpUtil.GetBytesToBytes(buf, ref index, 2); Tl.Checksum = TcpUtil.ConvertByte(buf, ref index); Tl.ETX = TcpUtil.ConvertByte(buf, ref index); } #endregion //#region ACK //if (anything is BIS_OP_66) //{ // BIS_OP_66 op66 = anything as BIS_OP_66; // //op66.SendDate = TcpUtil.ConvertUInt(buf, ref index); // //op66.SendTime = TcpUtil.ConvertUInt(buf, ref index); // op66.OccurDate = TcpUtil.ConvertUInt(buf, ref index); // op66.OccurTime = TcpUtil.ConvertUInt(buf, ref index); // op66.bus_speed = TcpUtil.ConvertByte(buf, ref index); // op66.Pos = TcpUtil.ConvertUInt(buf, ref index); // op66.heading = TcpUtil.ConvertByte(buf, ref index); // op66.bus_speed = TcpUtil.ConvertByte(buf, ref index); // op66.device_stat = TcpUtil.ConvertUInt(buf, ref index); // op66.bnode_id = TcpUtil.ConvertUInt(buf, ref index); // op66.bm_seqno = TcpUtil.ConvertByte(buf, ref index); // op66.dptc_seqno = TcpUtil.ConvertByte(buf, ref index); // op66.travel_time = TcpUtil.ConvertByte(buf, ref index); // op66.cdma_grade = TcpUtil.ConvertInt(buf, ref index); // op66.Reserved = TcpUtil.GetBytesToBytes(buf, ref index, 2); //} //#endregion } catch (Exception ex) { throw ex; } }
protected Tag MakePage(SpinneretPage page, string title, object content) { var head = new HEAD( new TITLE(FormatHtmlTitle(title)), new LINK() { rel = "stylesheet", type = "text/css", href = GetCssLink() } ); var body = new BODY() { class_ = page.FullScreen ? "sw-full-screen" : null }._( page.FullScreen ? (object)new object[] { new H1(title), content } : new TABLE() { class_ = "sw-layout" }._(new TR() { class_ = "sw-layout" }._( new TD() { class_ = "sw-layout-leftpane" }._( new P(new A(GetHomeLinkBody()) { href = "/" }) { class_ = "sw-topleft-title" }, GetNavPanelTop(page), GetNavLinks(page), GetNavPanelBottom(page) ), new TD() { class_ = "sw-layout-mainpane" }._( new DIV() { class_ = "sw-floating-links" }._( GetFloatingLinks(page).InsertBetween <object>(" • ") ), new H1(title), content ) )) ); return(new HTML(head, body)); }
private void parseJson(string json) { CrestronConsole.PrintLine("parseJson(string json): Called"); CrestronConsole.PrintLine("parseJson(string json) json: {0}", json); RootObject myWeather = JsonConvert.DeserializeObject<RootObject>(json); try { <<<<<<< HEAD weatherDescription = myWeather.weather[0].description; weatherIconURL = string.Format("http://openweathermap.org/img/w/{0}.png", myWeather.weather[0].icon);
/// <summary> /// Show Exception dialog /// </summary> /// <param name="sender">Use this</param> /// <param name="exception">Catched exception</param> public static void onException(object sender, Exception exception) { const string HEAD = "Error : #exceptionName from #functionName in #sender : \n #exceptionText"; var txt = HEAD.Replace("#exceptionName", typeof(Exception).Name); txt = txt.Replace("#functionName", exception.TargetSite.Name); txt = txt.Replace("#sender", sender.GetType().Name); txt = txt.Replace("#exceptionText", exception.Message); MessageBox.Show(txt, "Error", MessageBoxButtons.OKCancel, MessageBoxIcon.Error); }
private void btnConsulta_Click(object sender, EventArgs e) { try { DataSet ds = new DataSet(); String SELECT = FormarCadena(); String WHERE = FormarWhere(); << << << < HEAD datos = Logica.DevuelveVotante.DevuelveVotantes(SELECT, WHERE, usuario); dgvConsulta.DataSource = datos; ds.Tables.Add(Logica.DevuelveVotante.DevuelveVotantes(SELECT, WHERE, usuario)); ds.WriteXmlSchema(@"C:\Users\Diego\Desktop\perfilacion.xml");
private List <TreeMapViewModel> ExecuteILInstructions() { var intermediate = this.NameSpaceQuery(); var i = 0; var list = intermediate.Select(m => new TreeMapViewModel() { Name = m.Name, << << << < HEAD NumericValue = m.GetAllMethods().Aggregate(i, (current, x) => current + x.Instructions.Count) == == == = // Numval = m.GetAllMethods().Aggregate(i, (current, x) => current + x.Instructions.Count) >> >> >> > started implementation of new DOM based on NRefactory.TypeSystem });
public bool setearEstadoCuota(int idCuota) { try { con = generarConexion(); con.Open(); string consulta = "UPDATE T_CUOTA_FINAL SET CUO_ESTADO = 'PAGADA' WHERE CUO_ID = '" + idCuota + "';"; cmd = new SqlCommand(consulta, con); << << << < HEAD //cmd.ExecuteNonQuery(); id_cuota = cmd.ExecuteScalar().ToString();
private bool processAction(string action) { bool cancelNavigation = false; try { switch (action) { case ReportExecution.ActionExecuteReport: setCurrentExecution(); << << << < HEAD cancelNavigation = true; == == == = cancelNavigation = true;
public static IServiceCollection ConfigureApplicationServices(this ServiceCollection services) => services.AddSingleton <IConsole, PhysicalConsole>() .AddSingleton <ICacheService, CacheService>() .AddSingleton <IConnectionService, ConnectionService>() .AddSingleton <IParserService, ParserService>() .AddSingleton <IFileService, FileService>() << << << < HEAD .AddSingleton <ISettingsService, SettingsService>() == == == = >> >> >> > dev0804 .AddSingleton <IBuildDefinitionsService, BuildDefinitionsService>() .AddSingleton <IReleaseDefinitionsService, ReleaseDefinitionsService>() .AddSingleton <ITaskGroupsService, TaskGroupsService>() .AddSingleton <ITaskService, TaskService>();
protected Tag MakePage(SpinneretPage page, string title, object content) { var head = new HEAD( new TITLE(FormatHtmlTitle(title)), GetCssLinks().Select(link => new LINK() { rel = "stylesheet", type = "text/css", href = link }) ); var body = new BODY() { class_ = page.FullScreen ? "sw-full-screen" : null }._( page.FullScreen ? (object)new object[] { new H1(title), content } : new[] { new DIV() { id = "mainbar" }._( new DIV() { id = "header" }._(new H1(title)), new DIV() { id = "content" }._(content) ), new DIV() { id = "sidebar" }._( GetFloatingLinks(page).InsertBetween <object>(" • "), new P(new A(GetHomeLinkBody()) { href = "/" }), GetNavPanelTop(page), GetNavLinks(page), GetNavPanelBottom(page) ), } ); return(new HTML(head, body)); }
protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder << << << < HEAD .HasAnnotation("ProductVersion", "3.0.0") == == == = .HasAnnotation("ProductVersion", "2.1.0") >> >> >> > asp.net .HasAnnotation("Relational:MaxIdentifierLength", 128) .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => { b.Property <string>("Id") << << << < HEAD .HasColumnType("nvarchar(450)"); b.Property <string>("ConcurrencyStamp") .IsConcurrencyToken() .HasColumnType("nvarchar(max)"); b.Property <string>("Name") .HasColumnType("nvarchar(256)") .HasMaxLength(256); b.Property <string>("NormalizedName") .HasColumnType("nvarchar(256)") == == == = .ValueGeneratedOnAdd(); b.Property <string>("ConcurrencyStamp") .IsConcurrencyToken(); b.Property <string>("Name") .HasMaxLength(256); b.Property <string>("NormalizedName") >> >> >> > asp.net .HasMaxLength(256); b.HasKey("Id"); b.HasIndex("NormalizedName") .IsUnique() .HasName("RoleNameIndex") .HasFilter("[NormalizedName] IS NOT NULL"); b.ToTable("AspNetRoles"); });
public RSTM(byte[] Data) { EndianBinaryReader er = new EndianBinaryReader(new MemoryStream(Data), Endianness.LittleEndian); try { Header = new RSTMHeader(er); Head = new HEAD(); } finally { er.Close(); } }
protected override void Seed(IndyBooks.Models.BookstoreDbContext context) { // This method will be called after migrating to the latest version. context.Books.AddOrUpdate(b => b.BookID, new Book() { BookID = 1, Title = "Pride and Prejudice", <<<<<<< HEAD Author = "Jane Austin", Price = 9.99M, AuthorID = 3 ======= AuthorID = 1, Price = 9.99M >>>>>>> 403ee8a12ee4d55e8f43e6c688eefe878253295a },
/// <summary> /// TCP 통신을 보낸다. /// </summary> public bool Send(byte OpCode, byte[] cSendBuf, uint nSize) { //if (IsDispose || !tcpClient.Connected) return false; try { List <byte> sendmsg = new List <byte>(); HEAD head = new HEAD(); head.STX = 0x02; head.bid_no = 0x66; // head.DeviceID = ushort.Parse(m_DeviceID); head.opcode = OpCode; head.Length = (ushort)nSize; sendmsg.AddRange(TcpUtil.ObjectToByte(head)); if (cSendBuf != null) { sendmsg.AddRange(cSendBuf); } TAIL tail = new TAIL(); //tail.Reserved = new byte[2]; //Array.Clear(tail.Reserved, 0, 2); tail.ETX = 0x03; byte bCheckSum = 0x00; for (int i = 0; i < sendmsg.Count; i++) { bCheckSum ^= sendmsg[i]; } tail.Checksum = bCheckSum; sendmsg.AddRange(TcpUtil.ObjectToByte(tail)); stream.Write(sendmsg.ToArray(), 0, sendmsg.Count); MakeLog(string.Format("[SendData] [Send0x{0:x2}] {1}", OpCode, TcpUtil.ToHexString(sendmsg.ToArray())), 0); //MakeLog(string.Format("[SendData] - {0}", sendmsg.Count), 1); } catch (Exception ex) { TcpUtil.ActionException(ex); } return(true); }
public BsmenubuttonMap() { // table ToTable("bsmenubutton"); // keys HasKey(t => t.Id); // Properties Property(t => t.Id) .HasColumnName("Id") .HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity) .IsRequired(); Property(t => t.ButtonId) .HasColumnName("ButtonId") << << << < HEAD << << << < HEAD .IsRequired();
public List <Lop> getLop() { try { string sql = "select lop.MaLop,lop.TenLop,lop.SiSo, lop.NamHoc,Khoi.TenKhoi from dbo.Lop lop join Khoi on Lop.MaKhoi = Khoi.MaKhoi"; SqlDataReader dr = dp.myExecuteReader(sql); List <Lop> list = new List <Lop>(); int malop, siso, namhoc; string tenlop, tenkhoi; while (dr.Read()) { malop = dr.GetInt32(0); tenlop = dr.GetString(1); siso = dr.GetInt32(2); << << << < HEAD namhoc = dr.GetInt32(3); makhoi = dr.GetInt32(4); Lop lop = new Lop(malop, tenlop, siso, namhoc, makhoi);
public void AdicionarAdministradoraValidaTest() { var administradora = new AdministradoraViewModel { Cnpj = "20138220000193", RazaoSocial = "POTENCIAL ADMINSTRADORA DE BENEFICIOS LTDA", NomeFantasia = "POTENCIAL", InscricaoEstadual = "274764511950", InscricaoMunicipal = "", <<<<<<< HEAD Site="http://www.potencial.com.br" }; Guid guid = _administradoraApplicationService.AdministradoraAdicionar(administradora).Id; bool valido = !string.IsNullOrEmpty(guid.ToString()) ? true : false ; Assert.IsTrue(valido); }
private void btnSearch_Click(object sender, EventArgs e) { try { string szTableName; string strQuerySQL = ""; szTableName = cmbTableList.SelectedValue.ToString(); if (szTableName.ToLower().Trim() == "process_appform") { string sztemp = " and state<> 'SendFinished' and state<>'Editing' and state<>'Stoped' and state<>'' and state<>'Cancel'"; strQuerySQL = "select id,create_time,last_opr_time,state,submit_time,tenant_id,channel_service from " + szTableName + " " + "where app_form_type='Exwarehouse'" + sztemp; Flag = false; } if (szTableName.ToLower().Trim() == "commstock_stock") { << << << < HEAD Flag = true; strQuerySQL = "select id,batch_time, logic_quantity,quantity ,storage_id ,commodity_id,cargo_space_code from " + szTableName;
public Issue2818() { FlowDirection = FlowDirection.RightToLeft; Master = new ContentPage { Title = "Master", BackgroundColor = Color.SkyBlue, << << << < HEAD IconImageSource = "menuIcon" == == == = Icon = "menuIcon" >> >> >> > Update(#12) }; Detail = new NavigationPage(new ContentPage { Title = "Detail", Content = new StackLayout { Children = { new Label { Text = "The page must be with RightToLeft FlowDirection. Hamburger icon in main page must be going to right side." }, new Button { Text = "Set RightToLeft", Command = new Command(() => FlowDirection = FlowDirection.RightToLeft) }, new Button { Text = "Set LeftToRight", Command = new Command(() => FlowDirection = FlowDirection.LeftToRight) } } } }); } }
public IEnumerable <AgendaMOD> Listar() { var lstAgenda = new List <AgendaMOD>(); lstAgenda.Add(new AgendaMOD { Codigo = 1, Cliente = 1, << << << < HEAD Titulo = "ABCD", DescricaoSimples = "ABCDescrição simples", DescricaoCompleta = "ABCDescrição Completa", == == == = Titulo = "", DescricaoSimples = "", DescricaoCompleta = "", >> >> >> > 199b448c761e984def3565897bfc271d2d9a1f5a Data = DateTime.Now, Gravado = DateTime.Now, Status = string.Empty });
public List <SemesterModel> GetSemesterData() { sqlConnection.Open(); SqlDataReader sqlDataReader = null; List <SemesterModel> semesterModel = new List <SemesterModel>(); string query = "Select * from Semester_Table"; using (SqlCommand sqlCommand = new SqlCommand(query, sqlConnection)) { sqlDataReader = sqlCommand.ExecuteReader(); while (sqlDataReader.Read()) { semesterModel.Add(new SemesterModel { semesterId = sqlDataReader["SemesterID"].ToString(), << << << < HEAD semesterName = sqlDataReader["SemesterNumber"].ToString(), == == == = semesterName = sqlDataReader["SemesterNumber"].ToString(), >> >> >> > 8aaeabd7a29deac318b76de40541eec6c32de4ab semesterMontYear = sqlDataReader["SemesterMonth_Year"].ToString() });
public OrderInfo InsertOrder(OrderPost post) { var result = new OrderInfo(); var userObjId = new ObjectId(post.userId); //获取最近一个订单信息 var builderOrder = Builders<OrderMongo>.Filter; var filterOrder = builderOrder.Eq(x => x.UserId, userObjId); filterOrder &= builderOrder.Eq(x => x.IsDel, false); var colOrder = MongoDBHelper.Instance.GetOrder(); try { //判断两个订单时间间隔,避免短时间频繁提交订单 var queryOrder = colOrder.Find(filterOrder).SortByDescending(x => x.CreatedAt).FirstOrDefault(); if (queryOrder != null) { TimeSpan interval = DateTime.Now - queryOrder.CreatedAt; if (interval.TotalSeconds < 10) return null; } //根据产品Id获取产品信息 var productObjIdList = post.productList.Select(x => new ObjectId(x.id)).ToList(); var buiderProduct = Builders<ProductMongo>.Filter; var filterProduct = buiderProduct.In(x => x._id, productObjIdList); filterProduct &= buiderProduct.Eq(x => x.IsDel, false); var queryProduct = MongoDBHelper.Instance.GetProduct().Find(filterProduct).ToList(); var productList = new List<ProductInOrder>(); //订单内产品信息列表 var proDtoList = new List<ProductInOrderDto>(); //返回给前端的订单内产品信息列表 foreach (var x in queryProduct) { var product = new ProductInOrder { _id = x._id, Name = x.Name, Description = x.Description, Price = x.Price }; product.Num = post.productList.Find(s => s.id == x._id.ToString()).Num; productList.Add(product); var proDto = new ProductInOrderDto { Id = x._id.ToString(), Name = x.Name, Description = x.Description, Price = x.Price, Num=product.Num, }; proDtoList.Add(proDto); } <<<<<<< HEAD var order = new OrderMongo { _id=ObjectId.GenerateNewId(), CreatedAt = DateTime.Now.AddHours(8), ProductList = productList, UserId = userObjId ======= var ran = new Random(); string tradeNo = string.Format("DT{0}{1}", DateTime.Now.ToString("yyyyMMddHHmmss"), ran.Next(9999)); var order = new OrderMongo { _id = ObjectId.GenerateNewId(), CreatedAt = DateTime.Now.AddHours(8), ProductList = productList, UserId = userObjId, TradeNo = tradeNo >>>>>>> c26f92d240a523a1903a8e87db204683ad299860 }; order.TotalPrice = productList.Select(x => x.Num * x.Price).Sum(); colOrder.InsertOne(order); order.ProductList = productList; var orderDto = new OrderDto { Id = order._id.ToString(), ProductList = proDtoList, <<<<<<< HEAD TotalPrice = order.TotalPrice ======= TotalPrice = order.TotalPrice, CreatedAt = order.CreatedAt, TradeNo = order.TradeNo >>>>>>> c26f92d240a523a1903a8e87db204683ad299860 }; result.order = orderDto;
/// <summary> /// Initializes a new instance of the <see cref="T:Microsoft.AspNetCore.Hosting.WebHostBuilder" /> /// class with pre-configured defaults. /// The UseStartup method on WebHost specifies the Startup class for your app. /// </summary> /// <param name="args">Arguments for this method.</param> /// <returns>A web server.</returns> public static IWebHost BuildWebHost(string[] args) => WebHost.CreateDefaultBuilder(args) << << << < HEAD .UseApplicationInsights() == == == = >> >> >> > 9a1346f23e7379b539e9319c6886e3013dc05145
protected override void NonRecursivePlaceholderFound(string placeholderTag, OpenXmlElementDataContext openXmlElementDataContext) { if (openXmlElementDataContext == null || openXmlElementDataContext.Element == null || openXmlElementDataContext.DataContext == null) { return; } string tagPlaceHolderValue = string.Empty; string tagGuidPart = string.Empty; GetTagValue(openXmlElementDataContext.Element as SdtElement, out tagPlaceHolderValue, out tagGuidPart); string tagValue = string.Empty; string content = string.Empty; switch (tagPlaceHolderValue) { case PlaceholderNonRecursiveA: << << << < HEAD tagValue = openXmlElementDataContext.DataContext.hit.Id.ToString(); content = openXmlElementDataContext.DataContext.hit.memberState; break; //case PlaceholderNonRecursiveB: // tagValue = openXmlElementDataContext.DataContext.hit.Id.ToString(); // content = openXmlElementDataContext.DataContext.hit.C24; // break; //case PlaceholderNonRecursiveC: // tagValue = openXmlElementDataContext.DataContext.hit.Id.ToString(); // content = openXmlElementDataContext.DataContext.hit.C2; // break; //case PlaceholderNonRecursiveD: // tagValue = openXmlElementDataContext.DataContext.hit.Id.ToString(); // content = openXmlElementDataContext.DataContext.hit.C18; // break; //case PlaceholderNonRecursiveE: // tagValue = openXmlElementDataContext.DataContext.hit.Id.ToString(); // content = openXmlElementDataContext.DataContext.hit.C14; // break; //case PlaceholderNonRecursiveF: // tagValue = openXmlElementDataContext.DataContext.hit.Id.ToString(); // content = openXmlElementDataContext.DataContext.hit.P1; // break; //case PlaceholderNonRecursiveH: // tagValue = openXmlElementDataContext.DataContext.hit.Id.ToString(); // content = openXmlElementDataContext.DataContext.hit.P22; // break; //case PlaceholderNonRecursiveI: // tagValue = openXmlElementDataContext.DataContext.hit.Id.ToString(); // content = openXmlElementDataContext.DataContext.hit.P1; // break; //case PlaceholderNonRecursiveJ: // tagValue = openXmlElementDataContext.DataContext.hit.Id.ToString(); // content = openXmlElementDataContext.DataContext.hit.P1; // break; //case PlaceholderNonRecursiveK: // tagValue = openXmlElementDataContext.DataContext.hit.Id.ToString(); // content = openXmlElementDataContext.DataContext.hit.P22; // break; //case PlaceholderNonRecursiveL: // tagValue = openXmlElementDataContext.DataContext.hit.Id.ToString(); // content = openXmlElementDataContext.DataContext.hit.ED1; // break; //case PlaceholderNonRecursiveM: // tagValue = ((openXmlElementDataContext.DataContext) as NonSensitiveReport).Id.ToString(); // content = ((openXmlElementDataContext.DataContext) as NonSensitiveReport).C9; // break; //case PlaceholderNonRecursiveN: // tagValue = ((openXmlElementDataContext.DataContext) as NonSensitiveReport).Id.ToString(); // content = ((openXmlElementDataContext.DataContext) as NonSensitiveReport).C28; // break; == == == = tagValue = ((openXmlElementDataContext.DataContext) as NonSensitiveReport).Id.ToString(); content = ((openXmlElementDataContext.DataContext) as NonSensitiveReport).C1; break;