Ejemplo n.º 1
0
    public datTabJSON getShopsRattle(string shopID)
    {
        datTabJSON rtnJSON = new datTabJSON();

        try
        {
            bizInformation myBizInfo = new bizInformation(shopID);
            rtnJSON.sColumns = myBizInfo.getMyRattlesHtml(1);
            if (rtnJSON.sColumns != null)
            {
                rtnJSON.iTotalDisplayRecords = 1 + 1;
                rtnJSON.iTotalRecords        = myBizInfo.CurrCycleRattleCnt;
                rtnJSON.sError = 0;
            }
            else
            {
                rtnJSON.iTotalDisplayRecords = 0;
                rtnJSON.sError = 100;
            }
        }
        catch (Exception err)
        {
            rtnJSON.sError = 911;
        }

        return(rtnJSON);
    }
Ejemplo n.º 2
0
    public datTabJSON getRattlesICreated(int PageNum)
    {
        //System.Windows.Forms.MessageBox.Show("in service");
        datTabJSON rtnJSON = new datTabJSON();

        try
        {
            bizInformation myBizInfo = new bizInformation();

            rtnJSON.sColumns = myBizInfo.getMyRattlesHtml(PageNum);
            if (rtnJSON.sColumns != null)
            {
                rtnJSON.iTotalDisplayRecords = PageNum + 1;
                rtnJSON.sError = 0;
            }
            else
            {
                rtnJSON.iTotalDisplayRecords = 0;
                rtnJSON.sError = 100;
            }
        }
        catch (Exception err)
        {
            rtnJSON.sError = 550;
            return(null);
        }
        return(rtnJSON);
    }
Ejemplo n.º 3
0
        private void btn_select_Click(object sender, EventArgs e)
        {
            targetRow = gridView1.GetDataRow(gridView1.FocusedRowHandle);
            bizInformation selectedInfo = selectedBizInfo(targetRow);

            this.SendBizInfoEvent(selectedInfo);
            this.Close();
        }
Ejemplo n.º 4
0
        private bizInformation selectedBizInfo(DataRow row)
        {
            bizInformation selectedInfo = new bizInformation();

            selectedInfo.bizID   = Convert.ToString(targetRow["ec_id"]);
            selectedInfo.bizName = Convert.ToString(targetRow["ec_name"]);

            return(selectedInfo);
        }