protected bool SaveForm(bool isDraft) { entryForm = SetEntryFormValue(); if (isDraft) { entryForm.Status = StatusEntry.Draft; } else { entryForm.Status = StatusEntry.Completed; } if (entryForm.IsValid) { entryForm.Save(); } if (GeneralFunction.isAllMaterialUploaded(entry)) { entry.Status = StatusEntry.UploadCompleted; } else { entry.Status = StatusEntry.UploadPending; } entry.DateModifiedString = DateTime.Now.ToString(); entry.Save(); return(true); }
private void ВыходВМенюАвторизацииToolStripMenuItem_Click(object sender, EventArgs e) { EntryForm Entry = new EntryForm(); Close(); Entry.Show(); }
public static MemoryStream Classification(EntryForm entf, Entry ent) { MemoryStream memoryStream = new System.IO.MemoryStream(); if (ent != null) { if (ent.CategoryPSDetail.IndexOf("Positive Change Environmental") != -1) { //Cat = "EFPositiveChangeEnvironmental"; memoryStream = PositiveChangeEnvironmentalPDF.memStream(entf, ent); } else if (ent.CategoryPSDetail.IndexOf("Sustained Success") != -1) { //Cat = "EFSustainedSuccess"; memoryStream = SustainedSuccessPDF.memStream(entf, ent); } else if (ent.CategoryPSDetail.IndexOf("Shopper") != -1) { //Cat = "EFShopperMarketing"; memoryStream = ShopperMarketingPDF.memStream(entf, ent); } else if (ent.CategoryMarket == "SM") { //Cat = "EFSingleMarket"; memoryStream = SingleMarketPDF.memStream(entf, ent); } else if (ent.CategoryMarket == "MM") { //Cat = "EFMultiMarket"; memoryStream = MultiMarketPDF.memStream(entf, ent); } } return(memoryStream); }
public ControlCtrl(EntryForm entryForm) : base() { resources = new ComponentResourceManager(typeof(ControlCtrl)); this.entryForm = entryForm; InitializeComponent(); InitializeToolStrip(); InitializeLenses(); }
private void SubBtnDetailsAdd_Click(object sender, System.EventArgs e) { _EntryForm = new EntryForm(); //_EntryForm.Show(); OpenChildFormInContainer(_EntryForm); //... other functionality HideSubMenu(); }
public static MemoryStream memStream(EntryForm entf, Entry ent) { entryForm = entf; entry = ent; MemoryStream memoryStream = new System.IO.MemoryStream(); memoryStream = GeneralFunctionEntryForm.memStream(GetDocument()); return(memoryStream); }
private void mnuDEntry_Click(object sender, EventArgs e) { if (entry == null) { entry = new EntryForm(); entry.MdiParent = this; entry.setMdiMainForm(this); entry.Icon = this.Icon; entry.Show(); } }
private void addInstanceBtn_Click(object sender, EventArgs e) { this.entryForm = new EntryForm(this.db); //EntryButton è un button custom indicante l'EntryForm da mostrare al click relativo. EntryButton senderBtn = (EntryButton)sender; this.entryForm.setMainPanel(senderBtn.EntryPanel); this.entryForm.Text = senderBtn.FormName; this.entryForm.ShowDialog(); }
private void BtnAddEntry_Click(object sender, EventArgs e) { using (EntryForm entryForm = new EntryForm()) { if (entryForm.ShowDialog() == DialogResult.OK) { // Refresh and update UI accordingly RefreshListView(); EntriesChanged(); } } }
protected void PopulateForm() { if (Page.Request["id"] != null) { Effie2017.App.Entry entry = Effie2017.App.Entry.GetEntry(GeneralFunction.GetValueGuid(Request["id"].ToString(), true)); //------- try { EntryForm entryForm = EntryForm.GetEntryForm(Guid.Empty, entry.Id); //string url = "../Main/" + GeneralFunctionEntryForm.GetEntryCategory(entry) + ".aspx?Id=" + GeneralFunction.StringEncryption(entry.Id.ToString()); string url = "../Main/" + GeneralFunctionEntryForm.GetEntryCategory(entry) + "PDF.aspx?Id=" + entry.Id; lnkFileDownload0.NavigateUrl = url; } catch { } //------- if (File.Exists(System.Configuration.ConfigurationSettings.AppSettings["storagePhysicalPath"] + "EntryUpload\\Authorisation\\" + entry.Id.ToString() + "\\" + entry.Serial + "_AuthorizationForm_PDF.pdf")) { lnkFileDownload2.NavigateUrl = System.Configuration.ConfigurationSettings.AppSettings["storageVirtualPath"] + "EntryUpload/Authorisation/" + entry.Id.ToString() + "/" + entry.Serial + "_AuthorizationForm_PDF.pdf"; } //------- if (File.Exists(System.Configuration.ConfigurationSettings.AppSettings["storagePhysicalPath"] + "EntryUpload\\Case\\" + entry.Id.ToString() + "\\" + entry.Serial + "_CaseImage.jpg")) { lnkFileDownload3.NavigateUrl = System.Configuration.ConfigurationSettings.AppSettings["storageVirtualPath"] + "EntryUpload/Case/" + entry.Id.ToString() + "/" + entry.Serial + "_CaseImage.jpg"; } else if (File.Exists(System.Configuration.ConfigurationSettings.AppSettings["storagePhysicalPath"] + "EntryUpload\\Case\\" + entry.Id.ToString() + "\\" + entry.Serial + "_CaseImage.jpeg")) { lnkFileDownload3.NavigateUrl = System.Configuration.ConfigurationSettings.AppSettings["storageVirtualPath"] + "EntryUpload/Case/" + entry.Id.ToString() + "/" + entry.Serial + "_CaseImage.jpeg"; } //------- if (File.Exists(System.Configuration.ConfigurationSettings.AppSettings["storagePhysicalPath"] + "EntryUpload\\Creative\\" + entry.Id.ToString() + "\\" + entry.Serial + "_CreativeMaterials_PDF.pdf")) { tblFile4.Visible = true; lnkFileDownload4.NavigateUrl = System.Configuration.ConfigurationSettings.AppSettings["storageVirtualPath"] + "EntryUpload/Creative/" + entry.Id.ToString() + "/" + entry.Serial + "_CreativeMaterials_PDF.pdf"; } if (File.Exists(System.Configuration.ConfigurationSettings.AppSettings["storagePhysicalPath"] + "EntryUpload\\CreativeVideo\\" + entry.Serial + "_CreativeMaterials_Video.mp4")) { tblFile5.Visible = true; //lnkFileDownload5.NavigateUrl = System.Configuration.ConfigurationSettings.AppSettings["storageVirtualPath"] + "EntryUpload/CreativeVideo/" + entry.Id.ToString() + "/" + entry.Serial + "_CreativeMaterials_Video.mp4"; lnkFileDownload5.NavigateUrl = "../Video/DownloadMedia.aspx?filePath=" + System.Configuration.ConfigurationManager.AppSettings["storagePhysicalPath"] + "EntryUpload\\CreativeVideo\\" + "&MediaID=" + entry.Serial + "_CreativeMaterials_Video.mp4"; } //if (GeneralFunction.FileExistsInAmazonS3(System.Configuration.ConfigurationManager.AppSettings["AWSBucket_Small"], entry.Serial + "_CreativeMaterials_Video.mp4")) //{ // tblFile5.Visible = true; // lnkFileDownload5.NavigateUrl = "../Video/DownloadMedia.aspx?BucketID=" + System.Configuration.ConfigurationManager.AppSettings["AWSBucket_Small"] + "&MediaID=" + entry.Serial + "_CreativeMaterials_Video.mp4"; //} } }
private void DeleteAcc_Click(object sender, EventArgs e) { Game_items_tradingEnt entity = new Game_items_tradingEnt(); Торговые_площадки trader = entity.Торговые_площадки.FirstOrDefault(a => a.Код_торговой_площадки == maintrader.Код_торговой_площадки); entity.Торговые_площадки.Remove(trader); entity.SaveChanges(); MessageBox.Show("Ваш аккаунт удалён"); EntryForm Entry = new EntryForm(); Close(); Entry.Show(); }
private void DeleteAcc_Click(object sender, EventArgs e) { Game_items_tradingEnt entity = new Game_items_tradingEnt(); азработчики dev = entity.азработчики.FirstOrDefault(a => a.Код_разработчика == maindev.Код_разработчика); entity.азработчики.Remove(dev); entity.SaveChanges(); MessageBox.Show("Ваш аккаунт удалён"); EntryForm Entry = new EntryForm(); Close(); Entry.Show(); }
private void comboBox3_DropDownClosed(object sender, EventArgs e) { ComboBox combo = (ComboBox)sender; var value = combo.SelectedValue; if (value == null) { return; } labelValContratto.Text = (from c in db.ContrattoVendita where c.Numero == EntryForm.convertStringInt(value.ToString()) select c.ImportoComplessivo).First().ToString(); }
public ActionResult EditForm(EntryForm form) { // CheckAgeRestrictions(); // CheckRegionRestrictions(); // ValidateEmail(); // ValidateRegion(); // CheckCtnBelongsToBeeline(); // return RedirectToAction("PersonalBeeline"); // CheckIsAlreadyCtnParticipation(); // return RedirectToAction("PersonalBeeline"); return(View("Offer")); }
private void comboBox2_DropDownClosed(object sender, EventArgs e) { ComboBox combo = (ComboBox)sender; var value = combo.SelectedValue; if (value == null) { return; } dataGridViewRevisioni.DataSource = from v in this.db.VeicoloVenduto join r in db.Revisione on v.Id equals r.VeicoloVenduto where v.Id == EntryForm.convertStringInt(value.ToString()) && r.DataEsecuzione != null select new { r.Numero, r.DataEsecuzione }; }
private void BtnEditEntry_Click(object sender, EventArgs e) { // Make sure only 1 entry is selected if (LstEntries.SelectedItems == null || LstEntries.SelectedItems.Count != 1) { return; } using (EntryForm entryForm = new EntryForm(Convert.ToInt32(LstEntries.SelectedItems[0].Tag))) { if (entryForm.ShowDialog() == DialogResult.OK) { // Refresh and update UI accordingly RefreshListView(); EntriesChanged(); } } }
protected void Page_Load(object sender, EventArgs e) { if (!string.IsNullOrEmpty(Request.QueryString["Id"])) { EntryId = new Guid(Request.QueryString["Id"]); //EntryId = new Guid(GeneralFunction.StringDecryption(Request.QueryString["Id"])); entry = Entry.GetEntry(EntryId); //Check if entry is closed if (entry.Status == StatusEntry.Completed) { Response.Redirect("./Dashboard.aspx"); } PDFURL = "../Main/" + GeneralFunctionEntryForm.GetEntryCategory(entry) + "PDF.aspx?temp=Preview&Id=" + entry.Id; PopulateHeaderForm(); try { entryForm = EntryForm.GetEntryForm(Guid.Empty, EntryId); } catch { entryForm = EntryForm.NewEntryForm(); } } if (!IsPostBack) { LoadForm(); PopulateForm(); ViewState["IsPreview"] = false; ViewState["SessionKey"] = DateTime.Now.ToString("HHmmss"); } initJavascript(); PDFURL = "../Main/" + GeneralFunctionEntryForm.GetEntryCategory(entry) + "PDF.aspx?temp=Preview&Id=" + entry.Id + "&skey=" + (string)ViewState["SessionKey"]; doPostBack(sender, e); }
protected void GenerateEF(Entry entry) { string storagePhysicalPath = System.Configuration.ConfigurationSettings.AppSettings["storagePhysicalPath"]; EntryForm entryForm = EntryFormList.GetEntryFormList().FirstOrDefault(x => x.IdEntry == entry.Id); if (entryForm != null) { MemoryStream memoryStream = new System.IO.MemoryStream(); string path = storagePhysicalPath + "EntryUpload/EntryForm/" + entry.Id; string Filename = entry.Serial + "_" + GeneralFunctionEntryForm.GetEntryCategory(entry) + ".pdf"; string Fullpath = Path.Combine(path, Filename); try { using (memoryStream = GeneralFunctionEntryForm.Classification(entryForm, entry)) { Document myDocument = new Document(); PdfWriter myPDFWriter = PdfWriter.GetInstance(myDocument, memoryStream); myDocument.Open(); byte[] content = memoryStream.ToArray(); var exists = Directory.Exists(path); if (!exists) { System.IO.Directory.CreateDirectory(path); } // Write out PDF from memory stream. using (FileStream fs = File.Create(Fullpath)) { fs.Write(content, 0, (int)content.Length); } } } catch { Response.Write("ERROR ==> (entryForm.Id:" + entryForm.Id + ") - " + Fullpath + "<br>"); } } }
public FrmDuplexPrintedPaperEntry(long srNo = 0) { InitializeComponent(); _entryForm = new EntryForm<DuplexPrintedPaper>(this, srNo); }
public FrmDuplexPrintedPaperEntry() { InitializeComponent(); _entryForm = new EntryForm<DuplexPrintedPaper>(this); }
protected void Page_Load(object sender, EventArgs e) { if (Request["id"] == null) { Response.Redirect("./Dashboard.aspx"); } entryForm = null; try { //EntryId = new Guid(GeneralFunction.StringDecryption(Request.QueryString["Id"])); EntryId = new Guid(Request.QueryString["Id"]); if (Request["temp"] != null) { if (Session["Entry-" + EntryId.ToString() + Request["skey"]] == null) { return; } entryForm = (EntryForm)Session["Entry-" + EntryId.ToString() + Request["skey"]]; //HttpContext.Current.Session.Remove("Entry-" + EntryId.ToString() + Request["skey"]); } else { entryForm = EntryForm.GetEntryForm(Guid.Empty, EntryId); } entry = Entry.GetEntry(EntryId); } catch { Response.Redirect("./Dashboard.aspx"); } MemoryStream memoryStream = new System.IO.MemoryStream(); StringReader srdr = new StringReader(GetDocument()); Document pdfDoc = new Document(PageSize.A4, 40, 40, 20, 35); HTMLWorker hparse = new HTMLWorker(pdfDoc); PdfWriter pdfWriter = PdfWriter.GetInstance(pdfDoc, memoryStream); //Define the page number PageEventHelper pageEventHelper = new PageEventHelper(); pdfWriter.PageEvent = pageEventHelper; // Define the page header pageEventHelper.Title = ""; pageEventHelper.HeaderFont = FontFactory.GetFont(BaseFont.COURIER_BOLD, 10, Font.BOLD); pageEventHelper.HeaderLeft = ""; pageEventHelper.HeaderRight = ""; pdfDoc.Open(); hparse.Parse(srdr); pdfWriter.CloseStream = false; pdfDoc.Close(); pdfWriter.Close(); Response.ContentType = "application/pdf"; memoryStream.WriteTo(Response.OutputStream); memoryStream.Close(); }
public FrmAutoStichingPinEntry() { InitializeComponent(); _entryForm = new EntryForm<AutoStichingPin>(this); }
public FrmCustomerMasterEntry() { InitializeComponent(); _entryForm = new EntryForm<CustomerMaster>(this); }
public FrmItemMasterEntry() { InitializeComponent(); _entryForm = new EntryForm<ItemMaster>(this); }
public FrmBundlingM1Entry() { InitializeComponent(); _entryForm = new EntryForm<BundlingM1>(this); }
public FrmBundlingM1Entry(long srNo = 0) { InitializeComponent(); _entryForm = new EntryForm<BundlingM1>(this,srNo); }
public ActionResult EditForm() { var model = new EntryForm(); return(View(model)); }
public IHttpActionResult Join(EntryFormDto dto) { string userIp = GetHostAddress(); //try //{ // IncreaseCounter(); //} //catch { } EntryFormResultDto result = new EntryFormResultDto(); result.ErrorCode = 200; result.Message = "参与成功"; // #1. validate if (dto == null || string.IsNullOrEmpty(dto.Name) || string.IsNullOrEmpty(dto.Phone)) { result.ErrorCode = 400; result.Message = "请填写姓名和电话"; return(Ok(result)); } dto.Name = HttpUtility.UrlDecode(dto.Name).Trim(); if (dto.Name.Length > 200 || dto.Phone.Length > 15) { result.ErrorCode = 401; result.Message = "姓名和电话长度过长"; return(Ok(result)); } dto.Phone = dto.Phone.Trim(); if (!Regex.IsMatch(dto.Phone, @"^\d{8,14}$")) { result.ErrorCode = 402; result.Message = "电话格式错误,应该全部为数字。"; return(Ok(result)); } // dup validation bool duplicate = _context.EntryForms.Any(c => c.MobiPhone == dto.Phone); if (duplicate) { result.ErrorCode = 403; result.Message = "电话号码已存在"; return(Ok(result)); } // #2. map EntryForm form = new EntryForm() { CreateBy = userIp, MobiPhone = dto.Phone, UserName = dto.Name }; // #3. save to db _context.EntryForms.Add(form); try { _context.SaveChanges(); } catch { result.ErrorCode = 500; result.Message = "发生错误,请重试"; return(Ok(result)); } // #4. return value return(Ok(result)); }
private void PopulateForm() { GeneralFunction.GetAllScoreCache(true); score = GeneralFunction.GetScoreFromMatchingEntryCache(entry, jury.Id, round); GeneralFunction.SetddlNomination(ref ddlNomination); // Jury Info lbJuryId.Text = jury.SerialNo; lbJuryName.Text = jury.FirstName + " " + jury.LastName; lbCompany.Text = jury.Company; lbRound.Text = round; //string panel = ""; //if (round == "1") panel = jury.Round1PanelId; //if (round == "2") panel = jury.Round2PanelId; //lbPanel.Text = panel; // panel information, filter off inactive panels SystemData sys = GeneralFunction.GetSystemData(); string jurypanelinfo = jury.Round1PanelId; string activepanels = sys.ActivePanelsRound1; if (round == "2") { jurypanelinfo = jury.Round2PanelId; activepanels = sys.ActivePanelsRound2; } string[] jurypanelinfoitem = jurypanelinfo.Split('|'); for (int i = 0; i < jurypanelinfoitem.Length; i++) { if (GeneralFunction.IsInList(jurypanelinfoitem[i], activepanels, '|')) { lbPanel.Text += jurypanelinfoitem[i] + " "; } } lbScoreCompletion.Text = "Pending"; if (score != null && score.IsSubmitted) { lbScoreCompletion.Text = "Completed"; } // Entry Info lbEntryId.Text = entry.Serial; lbTitle.Text = entry.Campaign; lbCategory.Text = GeneralFunction.GetEntryMarket(entry.CategoryMarketFromRound(round)) + "<br/>" + entry.CategoryPSDetailFromRound(round); lbBrand.Text = entry.Brand; lbClient.Text = entry.Client; // uploads - entry form #region old method //if (File.Exists(System.Configuration.ConfigurationSettings.AppSettings["storagePhysicalPath"] + "EntryUpload\\Entry\\" + entry.Id.ToString() + "\\" + entry.Serial + "_EntryForm_PDF.pdf")) //{ // lnkEntryFormPDF.Visible = true; // lnkEntryFormPDF.NavigateUrl = System.Configuration.ConfigurationSettings.AppSettings["storageVirtualPath"] + "EntryUpload/Entry/" + entry.Id.ToString() + "/" + entry.Serial + "_EntryForm_PDF.pdf?" + DateTime.Now.Ticks.ToString(); //} #endregion #region new method try { EntryForm entryForm = EntryForm.GetEntryForm(Guid.Empty, entry.Id); if (entryForm.Status != StatusEntry.Draft) { string url = "../Main/" + GeneralFunctionEntryForm.GetEntryCategory(entry) + "PDF.aspx?Id=" + entry.Id; lnkEntryFormPDF.Visible = true; lnkEntryFormPDF.NavigateUrl = url; } } catch { } #endregion // entry form word is not shown to jury //if (File.Exists(System.Configuration.ConfigurationSettings.AppSettings["storagePhysicalPath"] + "EntryUpload\\Entry\\" + entry.Id.ToString() + "\\" + entry.Serial + "_EntryForm_Word.doc")) //{ // lnkEntryFormDOC.Visible = true; // lnkEntryFormDOC.NavigateUrl = System.Configuration.ConfigurationSettings.AppSettings["storageVirtualPath"] + "EntryUpload/Entry/" + entry.Id.ToString() + "/" + entry.Serial + "_EntryForm_Word.docx"; //} //else if (File.Exists(System.Configuration.ConfigurationSettings.AppSettings["storagePhysicalPath"] + "EntryUpload\\Entry\\" + entry.Id.ToString() + "\\" + entry.Serial + "_EntryForm_Word.docx")) //{ // lnkEntryFormDOC.Visible = true; // lnkEntryFormDOC.NavigateUrl = System.Configuration.ConfigurationSettings.AppSettings["storageVirtualPath"] + "EntryUpload/Entry/" + entry.Id.ToString() + "/" + entry.Serial + "_EntryForm_Word.docx"; //} //// uploads - authorization form //// not shown to jury, aspx commented out //if (File.Exists(System.Configuration.ConfigurationSettings.AppSettings["storagePhysicalPath"] + "EntryUpload\\Authorisation\\" + entry.Id.ToString() + "\\" + entry.Serial + "_AuthorizationForm_PDF.pdf")) //{ // lnkAutPDF.Visible = true; // lnkAutPDF.NavigateUrl = System.Configuration.ConfigurationSettings.AppSettings["storageVirtualPath"] + "EntryUpload/Authorisation/" + entry.Id.ToString() + "/" + entry.Serial + "_AuthorizationForm_PDF.pdf"; //} //// uploads - case image //// not shown to jury, aspx commented out //if (File.Exists(System.Configuration.ConfigurationSettings.AppSettings["storagePhysicalPath"] + "EntryUpload\\Case\\" + entry.Id.ToString() + "\\" + entry.Serial + "_CaseImage.jpg")) //{ // lnkCaseImage.Visible = true; // lnkCaseImage.NavigateUrl = System.Configuration.ConfigurationSettings.AppSettings["storageVirtualPath"] + "EntryUpload/Case/" + entry.Id.ToString() + "/" + entry.Serial + "_CaseImage.jpeg"; //} //if (File.Exists(System.Configuration.ConfigurationSettings.AppSettings["storagePhysicalPath"] + "EntryUpload\\Case\\" + entry.Id.ToString() + "\\" + entry.Serial + "_CaseImage.jpeg")) //{ // lnkCaseImage.Visible = true; // lnkCaseImage.NavigateUrl = System.Configuration.ConfigurationSettings.AppSettings["storageVirtualPath"] + "EntryUpload/Case/" + entry.Id.ToString() + "/" + entry.Serial + "_CaseImage.jpeg"; //} // uploads - creative materials if (File.Exists(System.Configuration.ConfigurationSettings.AppSettings["storagePhysicalPath"] + "EntryUpload\\Creative\\" + entry.Id.ToString() + "\\" + entry.Serial + "_CreativeMaterials_PDF.pdf")) { lnkCreativePDF.Visible = true; lnkCreativePDF.NavigateUrl = System.Configuration.ConfigurationSettings.AppSettings["storageVirtualPath"] + "EntryUpload/Creative/" + entry.Id.ToString() + "/" + entry.Serial + "_CreativeMaterials_PDF.pdf?" + DateTime.Now.Ticks.ToString(); } if (File.Exists(System.Configuration.ConfigurationSettings.AppSettings["storagePhysicalPath"] + "EntryUpload\\Creative\\" + entry.Id.ToString() + "\\" + entry.Serial + "_CreativeMaterialsTranslate_PDF.pdf")) { lnkCreativePDFTranslate.Visible = true; lnkCreativePDFTranslate.NavigateUrl = System.Configuration.ConfigurationSettings.AppSettings["storageVirtualPath"] + "EntryUpload/Creative/" + entry.Id.ToString() + "/" + entry.Serial + "_CreativeMaterialsTranslate_PDF.pdf?" + DateTime.Now.Ticks.ToString(); } //if (File.Exists(System.Configuration.ConfigurationSettings.AppSettings["storagePhysicalPath"] + "EntryUpload\\CreativeVideo\\" + entry.Serial + "_CreativeMaterials_Video.mp4")) //{ // //btnCreativeVid.Visible = true; // //btnCreativeVid.CommandArgument = "EntryUpload/Creative/" + entry.Id.ToString() + "/" + entry.Serial + "_CreativeMaterials_Video.mp4"; // lnkCreativeVid.Visible = true; // lnkCreativeVid.NavigateUrl = "../Video/DownloadMedia.aspx?filePath=" + System.Configuration.ConfigurationManager.AppSettings["storagePhysicalPath"] + "EntryUpload\\CreativeVideo\\" + "&MediaID=" + entry.Serial + "_CreativeMaterials_Video.mp4"; //} if (GeneralFunction.FileExistsInAmazonS3(System.Configuration.ConfigurationManager.AppSettings["AWSBucket_Small"], entry.Serial + "_CreativeMaterials_Video.mp4")) { //btnCreativeVid.Visible = true; //btnCreativeVid.CommandArgument = "EntryUpload/Creative/" + entry.Id.ToString() + "/" + entry.Serial + "_CreativeMaterials_Video.mp4"; lnkCreativeVid.Visible = true; lnkCreativeVid.NavigateUrl = System.Configuration.ConfigurationManager.AppSettings["AWSS3WebURL"] + System.Configuration.ConfigurationManager.AppSettings["AWSBucket_Small"] + "/" + entry.Serial + "_CreativeMaterials_Video.mp4?" + DateTime.Now.Ticks.ToString(); } else if (File.Exists(System.Configuration.ConfigurationSettings.AppSettings["storagePhysicalPath"] + "EntryUpload\\CreativeVideo\\" + entry.Serial + "_CreativeMaterials_Video.mp4")) { lnkCreativeVid.Visible = true; lnkCreativeVid.NavigateUrl = System.Configuration.ConfigurationSettings.AppSettings["storageVirtualPath"] + "EntryUpload\\CreativeVideo\\" + entry.Serial + "_CreativeMaterials_Video.mp4"; } // scores if (score != null) { txtSC.Text = score.ScoreSC.ToString(); txtID.Text = score.ScoreID.ToString(); txtIL.Text = score.ScoreIL.ToString(); txtRE.Text = score.ScoreRE.ToString(); lbCScoreTotal.Text = score.ScoreComposite.ToString(); // calculations lbCScoreSC.Text = GeneralFunction.CalculateSC(score.ScoreSC).ToString("N"); lbCScoreID.Text = GeneralFunction.CalculateID(score.ScoreID).ToString("N"); lbCScoreIL.Text = GeneralFunction.CalculateIL(score.ScoreIL).ToString("N"); lbCScoreRE.Text = GeneralFunction.CalculateRE(score.ScoreRE).ToString("N"); lbCScoreTotal.Text = GeneralFunction.CalculateCompositeScore(score.ScoreSC, score.ScoreID, score.ScoreIL, score.ScoreRE).ToString("N"); txtFeedbackStrong.Text = score.FeedbackStrong; txtFeedbackWeak.Text = score.FeedbackWeak; ddlFlag.SelectedValue = score.Flag; txtFlagOthers.Text = score.FlagOthers; ddlRecuse.SelectedValue = "No"; if (score.IsRecuse) { ddlRecuse.SelectedValue = "Yes"; } txtRecuseRemarks.Text = score.RecuseRemarks; txtAdditionalComments.Text = score.AdditionalComments; ddlRecommendation.SelectedValue = (score.IsAdvancement) ? "Yes" : "No"; ddlNomination.SelectedValue = score.Nomination; } ddlRecommendation.Attributes.Add("onchange", "OnChangeddlRecom('" + AdvancementFlag.ClientID + "','" + ddlRecommendation.ClientID + "', '" + round + "');"); // enable or disable ddlRecuse_SelectedIndexChanged(null, null); // admin spoof to disable the form fields and submission //btnSave.Visible = !isAdminSpoof; //btnSubmit.Visible = !isAdminSpoof; if (isAdminSpoof) { GeneralFunction.ChangeStateControls(this, false); } if (score != null && score.IsSubmitted) { btnSave.Visible = false; btnSaveDraft.Visible = false; GeneralFunction.ChangeStateControls(this, false); } }
public FrmItemMasterEntry(long srNo = 0) { InitializeComponent(); _entryForm = new EntryForm<ItemMaster>(this, srNo); }
public FrmAutoStichingPinEntry(long srNo = 0) { InitializeComponent(); _entryForm = new EntryForm<AutoStichingPin>(this,srNo); }
public FrmRotaryEntry() { InitializeComponent(); _entryForm = new EntryForm<Rotary>(this); }
public FrmCustomerMasterEntry(long srNo = 0) { InitializeComponent(); _entryForm = new EntryForm<CustomerMaster>(this,srNo); }
public FrmRotaryEntry(long srNo = 0) { InitializeComponent(); _entryForm = new EntryForm<Rotary>(this, srNo); }
public async Task <IActionResult> Post([FromBody] EntryForm form) { await Task.Yield(); return(Ok(true)); }
public FrmPaperReelConsumptionEntry() { InitializeComponent(); _entryForm = new EntryForm<PaperReelConsumption>(this); }
protected void radGridEntry_ItemDataBound(object sender, GridItemEventArgs e) { if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem) { Effie2017.App.Entry entry = (Effie2017.App.Entry)e.Item.DataItem; LinkButton lnkBtn = null; lnkBtn = (LinkButton)e.Item.FindControl("lnkBtnDelete"); //lnkBtn.Attributes.Add("onclick", "return DeleteConfirmation('" + ((GridDataItem)e.Item)["Serial"].Text + "');"); lnkBtn.Attributes.Add("onclick", "return DeleteConfirmation('Entry');"); try { Label lblno = (Label)e.Item.FindControl("lblno"); //lblno.Text = Number.ToString(); lblno.Text = (e.Item.ItemIndex + 1).ToString(); Number++; } catch { } CheckBox chk = null; HyperLink lnk = null; ((GridDataItem)e.Item)["DateSubmitted"].Text = entry.DateSubmitted.ToString("dd/MM/yy"); ((GridDataItem)e.Item)["DateModified"].Text = entry.DateModified.ToString("dd/MM/yy"); if (entry.CategoryMarket == "SM") { ((GridDataItem)e.Item)["CategoryMarket"].Text = "Single Market"; } else if (entry.CategoryMarket == "MM") { ((GridDataItem)e.Item)["CategoryMarket"].Text = "Multi Market"; } ((GridDataItem)e.Item)["CategoryMarket"].Text = entry.CategoryPSDetail; //+= "<br>" + if (entry.PayStatus == "NOT") { ((GridDataItem)e.Item)["PayStatus"].Text = "<a href='../Admin/PaymentPdfView.aspx?id=" + GeneralFunction.StringEncryption(entry.Id.ToString()) + "' target='_blank' class='fontRed'>" + GeneralFunction.GetPaymentEntryStatus(entry.PayStatus) + "</a>"; } else { ((GridDataItem)e.Item)["PayStatus"].Text = "<a href='../Admin/PaymentPdfView.aspx?id=" + GeneralFunction.StringEncryption(entry.Id.ToString()) + "' target='_blank'>" + GeneralFunction.GetPaymentEntryStatus(entry.PayStatus) + "</a>"; } ((GridDataItem)e.Item)["Status"].Text = GeneralFunction.GetEntryStatus(entry.Status); if (entry.Status == StatusEntry.Draft || GeneralFunction.IsEntrantSubmissionCutOff()) { try { lnkBtn = (LinkButton)e.Item.FindControl("LinkCloning"); lnkBtn.Visible = false; } catch { } } if (GeneralFunction.IsEntrantSubmissionCutOff() || !GeneralFunction.IsAllowClone()) { try { lnkBtn = (LinkButton)e.Item.FindControl("lnkBtnCloning"); lnkBtn.Visible = false; } catch { } } if (entry.Status == StatusEntry.Completed) { ((GridDataItem)e.Item)["Status"].Text = "<span style=\"font-weight:bold\">" + GeneralFunction.GetEntryStatus(entry.Status) + "</span>"; } if (entry.WithdrawnStatus != "") { ((GridDataItem)e.Item)["Status"].Text += "<br/><span style=\"color:Red;\">" + GeneralFunction.GetWithdrawnStatus(entry.WithdrawnStatus) + "</span>"; } lnkBtn = (LinkButton)e.Item.FindControl("lnkBtnViewCampaign"); if (lnkBtn.Text == "") { lnkBtn.Text = entry.Campaign; } #region Condition for radGridEntry //if (entry.PayStatus == StatusPaymentEntry.Paid) if (true) { if (entry.WithdrawnStatus == "" && (entry.Status == StatusEntry.UploadPending || entry.Status == StatusEntry.UploadCompleted || entry.Status == StatusEntry.Completed)) { //Guid EntryId = new Guid(((GridDataItem)e.Item)["Id"].Text); if (entry != null) { string url = "./" + GeneralFunctionEntryForm.GetEntryCategory(entry) + ".aspx?Id=" + entry.Id; string urlPdf = "./" + GeneralFunctionEntryForm.GetEntryCategory(entry) + "PDF.aspx?Id=" + entry.Id; string StatusEntryForm = ""; HyperLink Edit = (HyperLink)e.Item.FindControl("lnkEntry1"); HyperLink ViewPDF = (HyperLink)e.Item.FindControl("lnkEntry2"); HyperLink hlEntryForm = (HyperLink)e.Item.FindControl("lnkEntryForm"); hlEntryForm.Enabled = true; hlEntryForm.Visible = true; hlEntryForm.NavigateUrl = url; hlEntryForm.CssClass = "tblLinkRed"; try { EntryForm entryForm = EntryForm.GetEntryForm(Guid.Empty, entry.Id); if (entry.Status == StatusEntry.Completed || entryForm.Status == StatusEntry.Completed) { StatusEntryForm = "Completed"; hlEntryForm.Visible = false; Edit.Enabled = true; Edit.Visible = true; Edit.NavigateUrl = url; Edit.Text = "Edit"; Edit.CssClass = "tblLinkBlack"; ViewPDF.Enabled = true; ViewPDF.Visible = true; ViewPDF.NavigateUrl = urlPdf; ViewPDF.Text = "<br>View PDF"; ViewPDF.CssClass = "tblLinkBlack"; } else { StatusEntryForm = "Draft"; } if (entry.Status == StatusEntry.Completed) { Edit.Visible = false; hlEntryForm.Visible = false; } hlEntryForm.Text = "Entry Form (" + StatusEntryForm + ")"; } catch { } } //////lnk = (HyperLink)e.Item.FindControl("lnkUploadEntry"); //////lnk.CssClass = "fancybox fancybox.iframe tblLinkRed"; //////lnk.NavigateUrl = "./UploadForAll.aspx?md=UE&id=" + GeneralFunction.StringEncryption(((GridDataItem)e.Item)["Id"].Text); //////lnk.Enabled = true; //////lnk.Visible = true; lnk = (HyperLink)e.Item.FindControl("lnkUploadAuthorisation"); lnk.CssClass = "fancybox fancybox.iframe tblLinkRed"; lnk.NavigateUrl = "./UploadForAll.aspx?md=UA&id=" + GeneralFunction.StringEncryption(((GridDataItem)e.Item)["Id"].Text); lnk.Enabled = true; lnk.Visible = true; lnk = (HyperLink)e.Item.FindControl("lnkUploadCase"); lnk.CssClass = "fancybox fancybox.iframe tblLinkRed"; lnk.NavigateUrl = "./UploadForAll.aspx?md=UC&id=" + GeneralFunction.StringEncryption(((GridDataItem)e.Item)["Id"].Text); lnk.Enabled = true; lnk.Visible = true; lnk = (HyperLink)e.Item.FindControl("lnkUploadCreative"); lnk.CssClass = "fancybox2 fancybox.iframe tblLinkRed"; lnk.NavigateUrl = "./UploadForCr.aspx?md=UCr&id=" + GeneralFunction.StringEncryption(((GridDataItem)e.Item)["Id"].Text); lnk.Enabled = true; lnk.Visible = true; if (entry.Status == StatusEntry.Completed) { lnk = (HyperLink)e.Item.FindControl("lnkEntryForm"); lnk.Visible = false; //////lnk = (HyperLink)e.Item.FindControl("lnkUploadEntry"); //////lnk.Visible = false; lnk = (HyperLink)e.Item.FindControl("lnkUploadAuthorisation"); lnk.Visible = false; lnk = (HyperLink)e.Item.FindControl("lnkUploadCase"); lnk.Visible = false; lnk = (HyperLink)e.Item.FindControl("lnkUploadCreative"); lnk.Visible = false; } //------- //if (File.Exists(System.Configuration.ConfigurationSettings.AppSettings["storagePhysicalPath"] + "EntryUpload\\Entry\\" + entry.Id.ToString() + "\\" + entry.Serial + "_EntryForm_PDF.pdf")) //{ // lnk = (HyperLink)e.Item.FindControl("lnkEntry1"); // lnk.Visible = true; // lnk.NavigateUrl = System.Configuration.ConfigurationSettings.AppSettings["storageVirtualPath"] + "EntryUpload/Entry/" + entry.Id.ToString() + "/" + entry.Serial + "_EntryForm_PDF.pdf?" + DateTime.Now.Ticks.ToString(); // //////lnk = (HyperLink)e.Item.FindControl("lnkUploadEntry"); // //////lnk.Text = "Edit"; // //////lnk.CssClass = "fancybox fancybox.iframe tblLinkBlack"; // lnk = (HyperLink)e.Item.FindControl("lnkEntryForm"); // lnk.Text = "Edit"; // lnk.CssClass = "tblLinkBlack"; //fancybox fancybox.iframe //} //if (File.Exists(System.Configuration.ConfigurationSettings.AppSettings["storagePhysicalPath"] + "EntryUpload\\Entry\\" + entry.Id.ToString() + "\\" + entry.Serial + "_EntryForm_Word.doc")) //{ // lnk = (HyperLink)e.Item.FindControl("lnkEntry2"); // lnk.Visible = true; // lnk.NavigateUrl = System.Configuration.ConfigurationSettings.AppSettings["storageVirtualPath"] + "EntryUpload/Entry/" + entry.Id.ToString() + "/" + entry.Serial + "_EntryForm_Word.doc?" + DateTime.Now.Ticks.ToString(); //} //else if (File.Exists(System.Configuration.ConfigurationSettings.AppSettings["storagePhysicalPath"] + "EntryUpload\\Entry\\" + entry.Id.ToString() + "\\" + entry.Serial + "_EntryForm_Word.docx")) //{ // lnk = (HyperLink)e.Item.FindControl("lnkEntry2"); // lnk.Visible = true; // lnk.NavigateUrl = System.Configuration.ConfigurationSettings.AppSettings["storageVirtualPath"] + "EntryUpload/Entry/" + entry.Id.ToString() + "/" + entry.Serial + "_EntryForm_Word.docx?" + DateTime.Now.Ticks.ToString(); //} //------- if (File.Exists(System.Configuration.ConfigurationSettings.AppSettings["storagePhysicalPath"] + "EntryUpload\\Authorisation\\" + entry.Id.ToString() + "\\" + entry.Serial + "_AuthorizationForm_PDF.pdf")) { lnk = (HyperLink)e.Item.FindControl("lnkAuthorisation1"); lnk.Visible = true; lnk.NavigateUrl = System.Configuration.ConfigurationSettings.AppSettings["storageVirtualPath"] + "EntryUpload/Authorisation/" + entry.Id.ToString() + "/" + entry.Serial + "_AuthorizationForm_PDF.pdf?" + DateTime.Now.Ticks.ToString(); lnk = (HyperLink)e.Item.FindControl("lnkUploadAuthorisation"); lnk.Text = "Edit"; lnk.CssClass = "fancybox fancybox.iframe tblLinkBlack"; } //------- if (File.Exists(System.Configuration.ConfigurationSettings.AppSettings["storagePhysicalPath"] + "EntryUpload\\Case\\" + entry.Id.ToString() + "\\" + entry.Serial + "_CaseImage.jpg")) { lnk = (HyperLink)e.Item.FindControl("lnkCase1"); lnk.Visible = true; lnk.NavigateUrl = System.Configuration.ConfigurationSettings.AppSettings["storageVirtualPath"] + "EntryUpload/Case/" + entry.Id.ToString() + "/" + entry.Serial + "_CaseImage.jpg?" + DateTime.Now.Ticks.ToString(); lnk = (HyperLink)e.Item.FindControl("lnkUploadCase"); lnk.Text = "Edit"; lnk.CssClass = "fancybox fancybox.iframe tblLinkBlack"; } else if (File.Exists(System.Configuration.ConfigurationSettings.AppSettings["storagePhysicalPath"] + "EntryUpload\\Case\\" + entry.Id.ToString() + "\\" + entry.Serial + "_CaseImage.jpeg")) { lnk = (HyperLink)e.Item.FindControl("lnkCase1"); lnk.Visible = true; lnk.NavigateUrl = System.Configuration.ConfigurationSettings.AppSettings["storageVirtualPath"] + "EntryUpload/Case/" + entry.Id.ToString() + "/" + entry.Serial + "_CaseImage.jpeg?" + DateTime.Now.Ticks.ToString(); lnk = (HyperLink)e.Item.FindControl("lnkUploadCase"); lnk.Text = "Edit"; lnk.CssClass = "fancybox fancybox.iframe tblLinkBlack"; } //------- if (File.Exists(System.Configuration.ConfigurationSettings.AppSettings["storagePhysicalPath"] + "EntryUpload\\Creative\\" + entry.Id.ToString() + "\\" + entry.Serial + "_CreativeMaterials_PDF.pdf")) { lnk = (HyperLink)e.Item.FindControl("lnkCreative1"); lnk.Visible = true; lnk.NavigateUrl = System.Configuration.ConfigurationSettings.AppSettings["storageVirtualPath"] + "EntryUpload/Creative/" + entry.Id.ToString() + "/" + entry.Serial + "_CreativeMaterials_PDF.pdf?" + DateTime.Now.Ticks.ToString(); lnk = (HyperLink)e.Item.FindControl("lnkUploadCreative"); lnk.Text = "Edit"; lnk.CssClass = "fancybox2 fancybox.iframe tblLinkBlack"; } if (File.Exists(System.Configuration.ConfigurationSettings.AppSettings["storagePhysicalPath"] + "EntryUpload\\CreativeVideo\\" + entry.Serial + "_CreativeMaterials_Video.mp4")) { lnkBtn = (LinkButton)e.Item.FindControl("lnkBtnCreative2"); lnkBtn.Visible = true; //lnkBtn.CommandArgument = "EntryUpload\\CreativeVideo\\" + entry.Serial + "_CreativeMaterials_Video.mp4"; lnkBtn.CommandArgument = "../Video/DownloadMedia.aspx?filePath=" + ConfigurationManager.AppSettings["storagePhysicalPath"] + "EntryUpload\\CreativeVideo\\" + "&MediaID=" + entry.Serial + "_CreativeMaterials_Video.mp4&t" + DateTime.Now.Ticks.ToString(); lnk = (HyperLink)e.Item.FindControl("lnkUploadCreative"); lnk.Text = "Edit"; lnk.CssClass = "fancybox2 fancybox.iframe tblLinkBlack"; } if (File.Exists(System.Configuration.ConfigurationSettings.AppSettings["storagePhysicalPath"] + "EntryUpload\\Creative\\" + entry.Id.ToString() + "\\" + entry.Serial + "_CreativeMaterialsTranslate_PDF.pdf")) { lnk = (HyperLink)e.Item.FindControl("lnkCreative3"); lnk.Visible = true; lnk.NavigateUrl = System.Configuration.ConfigurationSettings.AppSettings["storageVirtualPath"] + "EntryUpload/Creative/" + entry.Id.ToString() + "/" + entry.Serial + "_CreativeMaterialsTranslate_PDF.pdf?" + DateTime.Now.Ticks.ToString(); lnk = (HyperLink)e.Item.FindControl("lnkUploadCreative"); lnk.Text = "Edit"; lnk.CssClass = "fancybox2 fancybox.iframe tblLinkBlack"; } //if (GeneralFunction.FileExistsInAmazonS3(ConfigurationManager.AppSettings["AWSBucket_Original"], entry.Serial + "_CreativeMaterials_Video.mp4")) //{ // if (GeneralFunction.FileExistsInAmazonS3(ConfigurationManager.AppSettings["AWSBucket_Small"], entry.Serial + "_CreativeMaterials_Video.mp4")) // { // lnkBtn = (LinkButton)e.Item.FindControl("lnkBtnCreative2"); // lnkBtn.Visible = true; // lnkBtn.CommandArgument = "../Video/DownloadMedia.aspx?BucketID=" + ConfigurationManager.AppSettings["AWSBucket_Small"] + "&MediaID=" + entry.Serial + "_CreativeMaterials_Video.mp4"; // lnk = (HyperLink)e.Item.FindControl("lnkUploadCreative"); // lnk.Text = "Edit"; // lnk.CssClass = "fancybox2 fancybox.iframe tblLinkBlack"; // } // else // { // lnkBtn = (LinkButton)e.Item.FindControl("lnkBtnCreative2"); // lnkBtn.Visible = true; // lnkBtn.Text = "Processing"; // lnkBtn.Enabled = false; // lnk = (HyperLink)e.Item.FindControl("lnkUploadCreative"); // lnk.Text = "Edit"; // lnk.CssClass = "fancybox2 fancybox.iframe tblLinkBlack"; // lnk.Visible = false; // } //} } } if (entry.Status == StatusEntry.PaymentPending || entry.WithdrawnStatus != "") { lnk = (HyperLink)e.Item.FindControl("lnkEntryForm"); lnk.Enabled = false; lnk.Visible = true; //////lnk = (HyperLink)e.Item.FindControl("lnkUploadEntry"); //////lnk.Enabled = false; //////lnk.Visible = true; lnk = (HyperLink)e.Item.FindControl("lnkUploadAuthorisation"); lnk.Enabled = false; lnk.Visible = true; lnk = (HyperLink)e.Item.FindControl("lnkUploadCase"); lnk.Enabled = false; lnk.Visible = true; lnk = (HyperLink)e.Item.FindControl("lnkUploadCreative"); lnk.Enabled = false; lnk.Visible = true; } lnk = (HyperLink)e.Item.FindControl("lnkConfirm"); if (lnk != null) { //if (entry.PayStatus == StatusPaymentEntry.Paid && entry.Status == StatusEntry.UploadCompleted) if (entry.Status == StatusEntry.UploadCompleted) { lnk.CssClass = "fancybox3 fancybox.iframe tblLinkBlack"; lnk.ForeColor = System.Drawing.Color.Red; lnk.NavigateUrl = "./UploadConfirm.aspx?md=UCr&id=" + GeneralFunction.StringEncryption(((GridDataItem)e.Item)["Id"].Text); lnk.Visible = true; } else if (entry.Status == StatusEntry.Completed) { lnk.Visible = false; } else { lnk.CssClass = "tblLinkDisable"; lnk.Enabled = false; } } #endregion #region Condition for radGridEntryPending if (entry.Status == StatusEntry.Ready) { chk = (CheckBox)e.Item.FindControl("chkSubmit"); chk.Enabled = true; lnkBtn = (LinkButton)e.Item.FindControl("lnkBtnView"); lnkBtn.Visible = true; } //else //{ // lnkBtn = (LinkButton)e.Item.FindControl("lnkBtnEdit"); // if (lnkBtn != null) // lnkBtn.Visible = true; //} #endregion //if (GeneralFunction.IsEntrantSubmissionCutOff()) //{ // lnk = (HyperLink)e.Item.FindControl("lnkConfirm"); // if (lnk != null) lnk.Visible = false; //} #region Allow Upload Files if (GeneralFunction.IsAllowUploadFiles()) { try { lnk = (HyperLink)e.Item.FindControl("lnkUploadAuthorisation"); //lnk.CssClass = "fancybox fancybox.iframe tblLinkRed"; lnk.NavigateUrl = "./UploadForAll.aspx?md=UA&id=" + GeneralFunction.StringEncryption(((GridDataItem)e.Item)["Id"].Text); lnk.Enabled = true; lnk.Visible = true; lnk = (HyperLink)e.Item.FindControl("lnkUploadCase"); //lnk.CssClass = "fancybox fancybox.iframe tblLinkRed"; lnk.NavigateUrl = "./UploadForAll.aspx?md=UC&id=" + GeneralFunction.StringEncryption(((GridDataItem)e.Item)["Id"].Text); lnk.Enabled = true; lnk.Visible = true; if (File.Exists(System.Configuration.ConfigurationSettings.AppSettings["storagePhysicalPath"] + "EntryUpload\\Authorisation\\" + entry.Id.ToString() + "\\" + entry.Serial + "_AuthorizationForm_PDF.pdf")) { lnk = (HyperLink)e.Item.FindControl("lnkAuthorisation1"); lnk.Visible = true; lnk.NavigateUrl = System.Configuration.ConfigurationSettings.AppSettings["storageVirtualPath"] + "EntryUpload/Authorisation/" + entry.Id.ToString() + "/" + entry.Serial + "_AuthorizationForm_PDF.pdf?" + DateTime.Now.Ticks.ToString(); lnk = (HyperLink)e.Item.FindControl("lnkUploadAuthorisation"); lnk.Text = "Edit"; lnk.CssClass = "fancybox fancybox.iframe tblLinkBlack"; } //------- if (File.Exists(System.Configuration.ConfigurationSettings.AppSettings["storagePhysicalPath"] + "EntryUpload\\Case\\" + entry.Id.ToString() + "\\" + entry.Serial + "_CaseImage.jpg")) { lnk = (HyperLink)e.Item.FindControl("lnkCase1"); lnk.Visible = true; lnk.NavigateUrl = System.Configuration.ConfigurationSettings.AppSettings["storageVirtualPath"] + "EntryUpload/Case/" + entry.Id.ToString() + "/" + entry.Serial + "_CaseImage.jpg?" + DateTime.Now.Ticks.ToString(); lnk = (HyperLink)e.Item.FindControl("lnkUploadCase"); lnk.Text = "Edit"; lnk.CssClass = "fancybox fancybox.iframe tblLinkBlack"; } else if (File.Exists(System.Configuration.ConfigurationSettings.AppSettings["storagePhysicalPath"] + "EntryUpload\\Case\\" + entry.Id.ToString() + "\\" + entry.Serial + "_CaseImage.jpeg")) { lnk = (HyperLink)e.Item.FindControl("lnkCase1"); lnk.Visible = true; lnk.NavigateUrl = System.Configuration.ConfigurationSettings.AppSettings["storageVirtualPath"] + "EntryUpload/Case/" + entry.Id.ToString() + "/" + entry.Serial + "_CaseImage.jpeg?" + DateTime.Now.Ticks.ToString(); lnk = (HyperLink)e.Item.FindControl("lnkUploadCase"); lnk.Text = "Edit"; lnk.CssClass = "fancybox fancybox.iframe tblLinkBlack"; } } catch { } } #endregion } }
public FrmPaperReelConsumptionEntry(long srNo = 0) { InitializeComponent(); _entryForm = new EntryForm<PaperReelConsumption>(this, srNo); }
public void setEntryForm(EntryForm entrY) { entry = entrY; }
private void ButtonTwo_Click(object sender, EventArgs e) { EntryForm Entry = new EntryForm(); Entry.Show(); }