예제 #1
0
        public void HandleGoToPageEventArgs_1(GoToPageEventArgs e)
        {
            this.CurrentPage = e.get_PageNO();
            string str = this.CurrentPage.ToString();

            PropertyUtil.SetValue("WBJK_DJHB_DATAGRID_HBMX_1", str);
        }
예제 #2
0
        private void aisinoDataGrid1_GoToPageEvent(object sender, GoToPageEventArgs e)
        {
            string str = e.get_PageNO().ToString();

            PropertyUtil.SetValue("WBJK_FPCX_DATAGRID", str);
            this.aisinoDataGrid1.set_DataSource(this.fpcxBLL.GetInvoiceDetail(this.invoiceQueryCondition, e.get_PageSize(), e.get_PageNO()));
            int count = this.aisinoDataGrid1.get_Rows().Count;

            for (int i = 0; i < count; i++)
            {
                string str2 = this.aisinoDataGrid1.get_Rows()[i].Cells["SLV"].Value.ToString();
                if ((((str2 != null) && (str2 != "")) && ((str2 != "免税") && (str2 != "中外合作油气田"))) && (str2 != "多税率"))
                {
                    str2 = ((Convert.ToDouble(str2) * 100.0)).ToString() + "%";
                    if (str2 == "1.5%")
                    {
                        this.aisinoDataGrid1.get_Rows()[i].Cells["SLV"].Value = "减按1.5%计算";
                    }
                    else
                    {
                        this.aisinoDataGrid1.get_Rows()[i].Cells["SLV"].Value = str2;
                    }
                }
            }
        }
예제 #3
0
        public void HandleGoToPageEventArgs(GoToPageEventArgs e)
        {
            this.CurrentPage = e.get_PageNO();
            this.PageSize    = e.get_PageSize();
            string str = this.CurrentPage.ToString();

            PropertyUtil.SetValue("WBJK_DJXG_DATAGRID", str);
        }
예제 #4
0
 private void aisinoDataGrid1_GoToPageEvent(object sender, GoToPageEventArgs e)
 {
     try
     {
         this.djcfBLL.Pagesize = e.get_PageSize();
         string str = e.get_PageNO().ToString();
         PropertyUtil.SetValue("WBJK_DJCF_DATAGRID1", str);
         if (this.JYrule == "s")
         {
             this.aisinoDataGrid1.remove_DataGridRowSelectionChanged(new EventHandler <DataGridRowEventArgs>(this.aisinoDataGrid1_DataGridRowSelectionChanged));
             this.CheckAdd(e.get_PageSize(), e.get_PageNO());
             this.aisinoDataGrid1.add_DataGridRowSelectionChanged(new EventHandler <DataGridRowEventArgs>(this.aisinoDataGrid1_DataGridRowSelectionChanged));
         }
         else
         {
             this.aisinoDataGrid1.set_DataSource(this.djcfBLL.QueryXSDJ(this.KeyWords, this.DJmonth, this.DJtype, this.JYrule, e.get_PageSize(), e.get_PageNO()));
         }
     }
     catch (Exception exception)
     {
         HandleException.HandleError(exception);
     }
 }
예제 #5
0
        private void aisinoDataGrid1_GoToPageEvent(object sender, GoToPageEventArgs e)
        {
            string str = e.get_PageNO().ToString();

            PropertyUtil.SetValue("WBJK_FPCC_DATAGRID", str);
            this.dataSet = this.fpccBLL.QueryFaPiao(this.StartDate, this.EndDate, this.FpType, e.get_PageSize(), e.get_PageNO());
            this.aisinoDataGrid1.set_DataSource(this.dataSet);
            int count = this.aisinoDataGrid1.get_Rows().Count;

            for (int i = 0; i < count; i++)
            {
                string str2 = this.aisinoDataGrid1.get_Rows()[i].Cells["SLV"].Value.ToString();
                if ((((str2 != null) && (str2 != "")) && ((str2 != "免税") && (str2 != "中外合作油气田"))) && (str2 != "多税率"))
                {
                    str2 = ((Convert.ToDouble(str2) * 100.0)).ToString() + "%";
                    this.aisinoDataGrid1.get_Rows()[i].Cells["SLV"].Value = str2;
                }
            }
        }
예제 #6
0
 private void aisinoDataGrid1_GoToPageEvent(object sender, GoToPageEventArgs e)
 {
     try
     {
         this.btnClear_Click(sender, e);
         string str = e.get_PageNO().ToString();
         PropertyUtil.SetValue("WBJK_DJXZFP_DATAGRID1", str);
         this.aisinoDataGrid1.set_DataSource(this.fptkBLL.GetXSDJ(this.fpType, e.get_PageSize(), e.get_PageNO()));
     }
     catch (Exception exception)
     {
         if (exception.ToString().Contains("超时"))
         {
             this.log.Error(exception.ToString());
         }
         else
         {
             HandleException.HandleError(exception);
         }
     }
 }
예제 #7
0
        private void aisinoDataGridq_GoToPageEvent(object sender, GoToPageEventArgs e)
        {
            int currentpage = e.get_PageNO();
            int pagesize    = e.get_PageSize();

            this.aisinoDataGridq.set_DataSource(this.djhbBLL.QueryXSDJMX_1(this.BeforeMergeSelectedBH, pagesize, currentpage));
            SaleBill bill  = this.billBL.Find(this.BeforeMergeSelectedBH);
            int      count = this.aisinoDataGridq.get_Rows().Count;

            for (int i = 0; i < count; i++)
            {
                string str  = this.aisinoDataGridq.get_Rows()[i].Cells["SLV"].Value.ToString();
                string str2 = this.aisinoDataGridq.get_Rows()[i].Cells["XH"].Value.ToString();
                if (((str != null) && (str != "")) && (str != "中外合作油气田"))
                {
                    string str3 = this.billBL.ShowSLV(bill, str2, str);
                    if (str3 != "")
                    {
                        this.aisinoDataGridq.get_Rows()[i].Cells["SLV"].Value = str3;
                    }
                }
            }
        }
예제 #8
0
        private void aisinoDataGridh_GoToPageEvent(object sender, GoToPageEventArgs e)
        {
            this.djhbBLL.HandleGoToPageEventArgs(e);
            int pageno   = e.get_PageNO();
            int pagesize = e.get_PageSize();

            this.aisinoDataGridh.set_DataSource(this.djhbBLL.GetMingXi(pagesize, pageno));
            int count = this.aisinoDataGridh.get_Rows().Count;

            for (int i = 0; i < count; i++)
            {
                string str  = this.aisinoDataGridh.get_Rows()[i].Cells["SLV"].Value.ToString();
                string str2 = this.aisinoDataGridh.get_Rows()[i].Cells["XH"].Value.ToString();
                if (((str != null) && (str != "")) && (str != "中外合作油气田"))
                {
                    string str3 = this.billBL.ShowSLV(this.mergedBill, str2, str);
                    if (str3 != "")
                    {
                        this.aisinoDataGridh.get_Rows()[i].Cells["SLV"].Value = str3;
                    }
                }
            }
        }
예제 #9
0
        private void aisinoDataGrid1_GoToPageEvent(object sender, GoToPageEventArgs e)
        {
            this.spcxBLL.Pagesize = e.get_PageSize();
            this.aisinoDataGrid1.set_DataSource(this.spcxBLL.QueryGoods(this.invoiceQueryCondition, e.get_PageSize(), e.get_PageNO()));
            int count = this.aisinoDataGrid1.get_Rows().Count;

            for (int i = 0; i < count; i++)
            {
                string str  = this.aisinoDataGrid1.get_Rows()[i].Cells["SLV"].Value.ToString();
                string str2 = this.aisinoDataGrid1.get_Rows()[i].Cells["XXFP.SLV"].Value.ToString();
                if (((str != null) && (str != "")) && (str != "多税率"))
                {
                    string str3 = this.aisinoDataGrid1.get_Rows()[i].Cells["FPZL"].Value.ToString();
                    string str4 = this.aisinoDataGrid1.get_Rows()[i].Cells["YYSBZ"].Value.ToString();
                    if ((((str == "0.05") && (str4.Substring(8, 1) == "0")) && (str3 == "专用发票")) && (str2 != ""))
                    {
                        this.aisinoDataGrid1.get_Rows()[i].Cells["SLV"].Value = "中外合作油气田";
                    }
                    else if (((CommonTool.isSPBMVersion() && (str == "0.00")) || ((str == "0.0") || (str == "0"))) || (str == "0%"))
                    {
                        string str5 = this.aisinoDataGrid1.get_Rows()[i].Cells["LSLVBS"].Value.ToString();
                        if (str5 == "0")
                        {
                            this.aisinoDataGrid1.get_Rows()[i].Cells["SLV"].Value = "出口零税";
                        }
                        else if (str5 == "1")
                        {
                            this.aisinoDataGrid1.get_Rows()[i].Cells["SLV"].Value = "免税";
                        }
                        else if (str5 == "2")
                        {
                            this.aisinoDataGrid1.get_Rows()[i].Cells["SLV"].Value = "不征税";
                        }
                        else
                        {
                            this.aisinoDataGrid1.get_Rows()[i].Cells["SLV"].Value = "0%";
                        }
                    }
                    else if (str == "0.015")
                    {
                        this.aisinoDataGrid1.get_Rows()[i].Cells["SLV"].Value = "减按1.5%计算";
                    }
                    else
                    {
                        str = ((Convert.ToDouble(str) * 100.0)).ToString() + "%";
                        this.aisinoDataGrid1.get_Rows()[i].Cells["SLV"].Value = str;
                    }
                }
            }
        }
예제 #10
0
        private void aisinoDataGrid2_GoToPageEvent(object sender, GoToPageEventArgs e)
        {
            this.djhyBLL.Pagesize = e.get_PageSize();
            this.aisinoDataGrid2.set_DataSource(this.djhyBLL.GetDJMX(this.CurrentBH, e.get_PageSize(), e.get_PageNO()));
            SaleBill bill  = this.billBL.Find(this.CurrentBH);
            int      count = this.aisinoDataGrid2.get_Rows().Count;

            for (int i = 0; i < count; i++)
            {
                string str  = this.aisinoDataGrid2.get_Rows()[i].Cells["SLV"].Value.ToString();
                string str2 = this.aisinoDataGrid2.get_Rows()[i].Cells["XH"].Value.ToString();
                if (((str != null) && (str != "")) && (str != "中外合作油气田"))
                {
                    string str3 = this.billBL.ShowSLV(bill, str2, str);
                    if (str3 != "")
                    {
                        this.aisinoDataGrid2.get_Rows()[i].Cells["SLV"].Value = str3;
                    }
                }
            }
        }
예제 #11
0
 private void aisinoDataGrid1_GoToPageEvent(object sender, GoToPageEventArgs e)
 {
     this.djhyBLL.Pagesize = e.get_PageSize();
     this.aisinoDataGrid1.set_DataSource(this.djhyBLL.QueryXSDJ(this.KeyWord, e.get_PageSize(), e.get_PageNO()));
 }
예제 #12
0
 private void aisinoDataGrid3_GoToPageEvent(object sender, GoToPageEventArgs e)
 {
     this.djhyBLL.Pagesize = e.get_PageSize();
     this.aisinoDataGrid3.set_DataSource(this.djhyBLL.GetYSDJ(this.CurrentBH, e.get_PageSize(), e.get_PageNO()));
 }
예제 #13
0
 private void aisinoDataGrid1_GoToPageEvent(object sender, GoToPageEventArgs e)
 {
     try
     {
         this.hzBLL.Pagesize = e.get_PageSize();
         this.aisinoDataGrid1.set_DataSource(this.hzBLL.QueryXSDJ(this.comboBoxYF.SelectedItem.ToString(), this.comboBoxDJZL.SelectedValue.ToString(), this.GetKeyWord(), e.get_PageSize(), e.get_PageNO(), this.GetKey()));
     }
     catch (Exception exception)
     {
         HandleException.HandleError(exception);
     }
 }
예제 #14
0
 private void aisinoDataGrid2_GoToPageEvent(object sender, GoToPageEventArgs e)
 {
     try
     {
         this.djcfBLL.Pagesize = e.get_PageSize();
         this.aisinoDataGrid2.set_DataSource(this.djcfBLL.QueryXSDJMX(this.Grid1BH, e.get_PageSize(), e.get_PageNO()));
         SaleBill bill  = this.billBL.Find(this.Grid1BH);
         int      count = this.aisinoDataGrid2.get_Rows().Count;
         for (int i = 0; i < count; i++)
         {
             string str  = this.aisinoDataGrid2.get_Rows()[i].Cells["SLV"].Value.ToString();
             string str2 = this.aisinoDataGrid2.get_Rows()[i].Cells["XH"].Value.ToString();
             if (((str != null) && (str != "")) && (str != "中外合作油气田"))
             {
                 string str3 = this.billBL.ShowSLV(bill, str2, str);
                 if (str3 != "")
                 {
                     this.aisinoDataGrid2.get_Rows()[i].Cells["SLV"].Value = str3;
                 }
             }
         }
     }
     catch (Exception exception)
     {
         HandleException.HandleError(exception);
     }
 }
예제 #15
0
 public void HandleGoToPageMXEventArgs(GoToPageEventArgs e)
 {
     this.CurrentPageMX = e.get_PageNO();
     this.PageSizeMX    = e.get_PageSize();
 }
예제 #16
0
 private void aisinoDataGrid2_GoToPageEvent(object sender, GoToPageEventArgs e)
 {
     try
     {
         if (!string.IsNullOrEmpty(this.Grid1BH))
         {
             this.aisinoDataGrid2.set_DataSource(this.fptkBLL.QueryXSDJMX(this.Grid1BH, e.get_PageSize(), e.get_PageNO()));
             for (int i = 0; i < this.aisinoDataGrid2.get_Rows().Count; i++)
             {
                 string str = this.aisinoDataGrid2.get_Rows()[i].Cells["SLV"].Value.ToString();
                 if ((((str != null) && (str != "")) && (str != "免税")) && (str != "中外合作油气田"))
                 {
                     str = ((Convert.ToDouble(str) * 100.0)).ToString() + "%";
                     this.aisinoDataGrid2.get_Rows()[i].Cells["SLV"].Value = str;
                 }
             }
         }
     }
     catch (Exception exception)
     {
         if (exception.ToString().Contains("超时"))
         {
             this.log.Error(exception.ToString());
         }
         else
         {
             HandleException.HandleError(exception);
         }
     }
 }
예제 #17
0
 private void aisinoDataGrid3_GoToPageEvent(object sender, GoToPageEventArgs e)
 {
     try
     {
         if (this.SelectedBH != "NoExist")
         {
             this.aisinoDataGrid3.set_DataSource(this.hzBLL.MXAfterZKHuiZong(e.get_PageSize(), e.get_PageNO()));
             int count = this.aisinoDataGrid3.get_Rows().Count;
             for (int i = 0; i < count; i++)
             {
                 string str  = this.aisinoDataGrid3.get_Rows()[i].Cells["SLV"].Value.ToString();
                 string str2 = this.aisinoDataGrid3.get_Rows()[i].Cells["XH"].Value.ToString();
                 if (((str != null) && (str != "")) && (str != "中外合作油气田"))
                 {
                     string str3 = this.billBL.ShowSLV(this.bill, str2, str);
                     if (str3 != "")
                     {
                         this.aisinoDataGrid3.get_Rows()[i].Cells["SLV"].Value = str3;
                     }
                 }
             }
         }
     }
     catch (Exception exception)
     {
         HandleException.HandleError(exception);
     }
 }
예제 #18
0
 private void aisinoDataGrid1_GoToPageEvent(object sender, GoToPageEventArgs e)
 {
     try
     {
         this.aisinoDataGrid1.set_DataSource(this.fpzfBL.GetZuoFeiXSDJ(e.get_PageSize(), e.get_PageNO(), this.IsAdmin, this.mc));
     }
     catch (Exception exception)
     {
         if (exception.ToString().Contains("超时"))
         {
             this.log.Error(exception.ToString());
         }
         else
         {
             HandleException.HandleError(exception);
         }
     }
 }