当前位置: 首页>>代码示例>>C#>>正文


C# Service1Client.BolgeKoduDon方法代码示例

本文整理汇总了C#中Service1Client.BolgeKoduDon方法的典型用法代码示例。如果您正苦于以下问题:C# Service1Client.BolgeKoduDon方法的具体用法?C# Service1Client.BolgeKoduDon怎么用?C# Service1Client.BolgeKoduDon使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Service1Client的用法示例。


在下文中一共展示了Service1Client.BolgeKoduDon方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: RadComboBoxFirma_ItemsRequested

    protected void RadComboBoxFirma_ItemsRequested(object o, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e)
    {
        if (e.Text.Length > 3)
        {
            using (Service1Client client = new Service1Client())
            {
                intBolgeKodu = client.BolgeKoduDon(Context.User.Identity.Name);
            }
            string BolgeKodu = intBolgeKodu.ToString();
            string sqlSelectCommand = "";
            sqlSelectCommand = "SELECT [FIRMAID],[MUSTNO], [FIRMAADI], [IL_ILCE] from [firma] WHERE [FIRMAADI] LIKE '%'+ @text + '%' and SILINDI=0 and BOLGEKODU=" + BolgeKodu + " ORDER BY [FIRMAADI]";
            SqlDataAdapter adapter = new SqlDataAdapter(sqlSelectCommand, ConfigurationManager.ConnectionStrings["KalData"].ConnectionString);
            adapter.SelectCommand.Parameters.AddWithValue("@text", e.Text);
            DataTable dataTable = new DataTable();
            adapter.Fill(dataTable);

            RadComboBoxFirma.Items.Clear();
            foreach (DataRow dataRow in dataTable.Rows)
            {
                string IlIlce = "";
                RadComboBoxItem item = new RadComboBoxItem();
                item.Text = (string)dataRow["MUSTNO"].ToString();
                item.Value = dataRow["FIRMAID"].ToString();
                string FirmaAdi = (string)dataRow["FIRMAADI"];
                if (dataRow["IL_ILCE"] != System.DBNull.Value)
                    {
                        IlIlce = (string)dataRow["IL_ILCE"];
                    }
                item.Attributes.Add("FIRMAADI", FirmaAdi);
                item.Attributes.Add("IL_ILCE", IlIlce);
                RadComboBoxFirma.Items.Add(item);
                item.DataBind();
            }
        }
    }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:35,代码来源:YapilanProtokollerGetAll.ascx.cs

示例2: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        EFDal ed = new EFDal();
        string UserName = Context.User.Identity.Name;
        using (Service1Client proxy = new Service1Client())
        {
           intBolgeKodu= proxy.BolgeKoduDon(UserName);
        }
        if (!IsPostBack)
        {

        }
    }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:13,代码来源:FirmaSecAutoComplete.ascx.cs

示例3: btnFiltrele_OnClick

    protected void btnFiltrele_OnClick(object sender, EventArgs e)
    {
        if (txtIstekNo.Text.Trim() != string.Empty)
        { EFDal ed = new EFDal();
            using (Service1Client client = new Service1Client())
            {
                int BolgeKodu = client.BolgeKoduDon(Context.User.Identity.Name);
                grdCihazCikislari.DataSource = ed.kal_CihazCikislariniDonYeni(BolgeKodu, DateTime.Parse(ProtokolBasTarTextBox.Text.Trim()), DateTime.Parse(ProtokolBitTarTextBox.Text.Trim()), Convert.ToInt32(txtIstekNo.Text.Trim()));
                grdCihazCikislari.DataBind();
            }
        }
        //bool bak = TekIstekIcerigimiGoruntuleniyor();
        if (TekIstekIcerigimiGoruntuleniyor())
        {

        }
    }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:17,代码来源:CihazCikislari.ascx.cs

示例4: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            using (Service1Client client = new Service1Client())
            {
                int curBolgeKodu = client.BolgeKoduDon(Context.User.Identity.Name);
                ddlBolgeler.SelectedValue = curBolgeKodu.ToString();
                ddlBolgeFaturaDusur.SelectedValue = curBolgeKodu.ToString();
                ddlBolgeler.Enabled = false;
                ddlBolgeFaturaDusur.Enabled = false;
            }
            if (UserManager.Default.IsUserInRole(Context.User.Identity.Name, "buro"))
            {
                btnFaturayaDusur.Enabled = true;
            }
            else
            {
                btnFaturayaDusur.Enabled = false;
            }

        }
    }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:23,代码来源:KilitKaldirma.ascx.cs

示例5: ddlsorumluDoldur

 protected void ddlsorumluDoldur()
 {
     using (Service1Client client = new Service1Client())
     {
         int BolgeKodu = client.BolgeKoduDon(Context.User.Identity.Name);
         ddlsorumlu.DataSource = client.kal_BolgeyeGoreTumPersonelListesiniDon(BolgeKodu);
         ddlsorumlu.DataTextField = "UserName";
         ddlsorumlu.DataValueField = "UserId";
         ddlsorumlu.DataBind();
         ddlsorumlu.Items.Insert(0, new ListItem("farketmez...", "0"));
         ddlsorumlu.SelectedValue = "0";
     }
 }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:13,代码来源:IstekAra.ascx.cs

示例6: RaporOlustur

    protected void RaporOlustur(string Format)
    {
        EFDal ed = new EFDal();
        report = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
        string RaporAdi = Request["RaporAdi"].ToString() + ".rpt";
        //string RaporAd = Server.MapPath("..\\..\\Rapor\\" + RaporAdi);
        string RaporAd = Server.MapPath("Rapor\\" + RaporAdi);
        report.Load(RaporAd);

        if (RaporAdi == "SertifikaKapak.rpt")//turkak
        {
            //100476479
            report.SetParameterValue("SayfaSayisi", Request["SayfaSayisi"].ToString());
            report.SetParameterValue("@IstID", Request["IstId"].ToString());
            report.SetParameterValue("OnayTarihi", Request["OnayTarihi"].ToString().Replace(" 00:00:00", ""));
            report.SetParameterValue("CihazAdi", Request["CihazAdi"].ToString());
            //report.SetParameterValue("QRCodeImagePath", Session["QRCodeImagePath"].ToString());
            //report.SetParameterValue("QRCodeImagePath", QRCodeOlustur());
            //report.SetParameterValue("Url", "Url");

            Session["DokumanSaklanacakIstId"] = Request["SayfaSayisi"].ToString();
        }

        if (RaporAdi == "SertifikaKapakTSE.rpt")//tse
        {
            //100476479
            report.SetParameterValue("SayfaSayisi", Request["SayfaSayisi"].ToString());
            report.SetParameterValue("@IstID", Request["IstId"].ToString());
            report.SetParameterValue("OnayTarihi", Request["OnayTarihi"].ToString().Replace(" 00:00:00", ""));
            report.SetParameterValue("CihazAdi", Request["CihazAdi"].ToString());
            Session["DokumanSaklanacakIstId"] = Request["SayfaSayisi"].ToString();
            //report.SetParameterValue("QRCodeImagePath", QRCodeOlustur());
            //report.SetParameterValue("Url", "Url");
        }

        if (RaporAdi == "SertifikaKapakEImza.rpt")//turkak
        {
            //100476479
            QRCodeOlustur();
            report.SetParameterValue("SayfaSayisi", Request["SayfaSayisi"].ToString());
            report.SetParameterValue("@IstID", Request["IstId"].ToString());
            report.SetParameterValue("OnayTarihi", Request["OnayTarihi"].ToString().Replace(" 00:00:00", ""));
            report.SetParameterValue("CihazAdi", Request["CihazAdi"].ToString());
            //report.SetParameterValue("QRCodeImagePath", Session["QRCodeImagePath"].ToString());
            //report.SetParameterValue("QRCodeImagePath", QRCodeOlustur());
            report.SetParameterValue("Url", Session["qrCodeURL"].ToString());

            Session["DokumanSaklanacakIstId"] = Request["SayfaSayisi"].ToString();
        }

        if (RaporAdi == "SertifikaKapakTSEEImza.rpt")//tse
        {
            //100476479
            QRCodeOlustur();
            report.SetParameterValue("SayfaSayisi", Request["SayfaSayisi"].ToString());
            report.SetParameterValue("@IstID", Request["IstId"].ToString());
            report.SetParameterValue("OnayTarihi", Request["OnayTarihi"].ToString().Replace(" 00:00:00", ""));
            report.SetParameterValue("CihazAdi", Request["CihazAdi"].ToString());
            Session["DokumanSaklanacakIstId"] = Request["SayfaSayisi"].ToString();
            //report.SetParameterValue("QRCodeImagePath", QRCodeOlustur());
            report.SetParameterValue("Url", Session["qrCodeURL"].ToString());
        }

        if (RaporAdi == "CihazKayit.rpt")
        {
            //report.SetParameterValue("Sifre", "bakalim");
            string IstekNo = Request["IstekNo"].ToString();
            int BolgeKodu = ed.kal_BolgeKoduDon(Context.User.Identity.Name);
            int Yil = int.Parse(Request["Yil"].ToString());
            int FirmaId = int.Parse(Request["FirmaId"].ToString());

            report.RecordSelectionFormula = "{vCihazKabul.SILINDI}=false and {vCihazKabul.ISTEKNO}=" + IstekNo + " and {vCihazKabul.BOLGEKODU}=" + BolgeKodu.ToString() + " and {vCihazKabul.YIL}=" + Yil.ToString() + " and {vCihazKabul.FIRMAID}=" + FirmaId.ToString();
            //report.RecordSelectionFormula = "{vCihazKabul.YIL}=9 and {vCihazKabul.ISTEKNO}=549 and {vCihazKabul.BOLGEKODU}=2";
        }

        if (RaporAdi == "GorevOluru.rpt")
        {
            string GorevId = Request["GorevId"].ToString();
            //report.RecordSelectionFormula = "{GorevPersonel.GorevID}=" + GorevId ;
            report.SetParameterValue("AracPlakasi", Session["RaporIcinAracPlakasi"].ToString());
            report.SetParameterValue("GorevId", GorevId);
            Session.Remove("RaporIcinAracPlakasi");
        }
        if (RaporAdi == "TeklifYeni.rpt")
        {
            lblUyari.Visible = false;
            int BolgeKodu = ed.kal_BolgeKoduDon(Context.User.Identity.Name);
            string TeklifNo = Request["TeklifNo"].ToString();
            string Telefon = ed.TeklifNodanFirmaninTelefonunuDon(TeklifNo, BolgeKodu);
            if (Telefon == "Neg")//Muhtemelen firma kaydı firma tablosuna yapilmamis
            {
                lblUyari.Text = "<b><u>UYARI:</u></b><br/>Muhtemel olarak firma tablosunda firma kaydı bulunamadı. Ya da firmaya ait telefon bilgisi girilmemiş.Lütfen kontrol ediniz..";
                lblUyari.Visible = true;
                return;
            }
            else
            {
                report.RecordSelectionFormula = "{teklif.TEKLIFNO}='" + TeklifNo + "' and {teklif.BOLGEKODU}=" + BolgeKodu.ToString() + " and {birim.BOLGEKODU}=" + BolgeKodu.ToString() + "  and {birim.NEICIN}='teklif'";
                //report.SetParameterValue("KurumTipi", "Kamu");
                //report.SetParameterValue("Telefon", "4545");
//.........这里部分代码省略.........
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:101,代码来源:Rapor.aspx.cs

示例7: GridiDoldur

 protected void GridiDoldur(DateTime Bastar, DateTime Bittar)
 {
     using (Service1Client client = new Service1Client())
     {
         EFDal ed = new EFDal();
         int BolgeKodu = client.BolgeKoduDon(Context.User.Identity.Name);
         //grdCihazCikislari.DataSource = client.CihazCikisListesiniTarihAraligiveBolgeKodundanDon(BolgeKodu, DateTime.Parse(ProtokolBasTarTextBox.Text.Trim()), DateTime.Parse(ProtokolBasTarTextBox.Text.Trim()));
         grdCihazCikislari.DataSource = ed.kal_CihazCikislariniDonYeni(BolgeKodu, Bastar, Bittar,null);
         grdCihazCikislari.DataBind();
     }
 }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:11,代码来源:CihazCikislari.ascx.cs

示例8: New

 /// <summary>
 /// Takes the user to the Customer Update page
 /// </summary>
 private void New()
 {
     using (Service1Client proxy = new Service1Client())
         {
             BolgeKoduTextBox.Text = proxy.BolgeKoduDon(Context.User.Identity.Name).ToString();
         }
         divEgitimBaseNeworUpdate.Visible = true;
         btnSaveEgitimAlan.Visible = true;
         btnIptalEgitimAlan.Visible = true;
         btnGuncelleEgitimAlan.Visible = false;
         btnSilEgitimAlan.Visible = false;
 }
开发者ID:inancakcan,项目名称:kalibrasyon,代码行数:15,代码来源:EgitimBaseGetAll.ascx.cs


注:本文中的Service1Client.BolgeKoduDon方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。