Ejemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            ClearingpartyModel hm  = new ClearingpartyModel();
            SqlDataReader      sdr = hm.findClearingpartyAll();

            if (sdr != null)
            {
                while (sdr.Read())
                {
                    this.Clearing1.Items.Add(new ListItem(sdr["ClearPName"].ToString()));
                }
            }
            this.Pspnum.Value          = Request.QueryString["Pspnum"];
            this.STime.Value           = Request.QueryString["STime"];
            this.ETime.Value           = Request.QueryString["ETime"];
            this.hospitalSelect1.Value = Request.QueryString["hospitalSelect"].ToString();
        }

        /* if (!Page.IsPostBack)
         * {
         *   //给button1添加客户端事件
         *   Button1.Attributes.Add("OnClick", "return  btnok_onclick()");
         *   //jsFunction()是js函数
         * }*/
    }
Ejemplo n.º 2
0
    public static bool deleteClearingpartyById(string strRowIds)
    {
        string[] strRows1Id = strRowIds.Split(',');
        for (int i = 0; i < strRows1Id.Length; i++)
        {
            ClearingpartyModel rm = new ClearingpartyModel();
            rm.deleteClearingpartyInfo(Convert.ToInt16(strRows1Id[i]));
        }

        return(true);
    }
    public static string Clearingpartyinfo(int id, string ClearPName, string ConPerson, string ConPhone, string Address, string Remarks, string GenDecoct)
    {
        ClearingpartyModel winfo = new ClearingpartyModel();
        int result = winfo.updateClearingpartyInfo(id, ClearPName, ConPerson, ConPhone, Address, Remarks, GenDecoct);

        string str = null;

        if (result == 0)
        {
            str = "0";
        }
        else
        {
            str = "1";
        }

        return(str);
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["id"] != null)
        {
            int id = Convert.ToInt16(Request.QueryString["id"]);
            idnum1.Value = Request.QueryString["id"].ToString();
            ClearingpartyModel rm = new ClearingpartyModel();
            DataTable          dt = rm.findClearingpartyInfo(id);

            ClearPName11.Value = dt.Rows[0]["ClearPName"].ToString();
            ConPerson11.Value  = dt.Rows[0]["ConPerson"].ToString();
            ConPhone11.Value   = dt.Rows[0]["ConPhone"].ToString();
            //PerSetInformation11.Value = dt.Rows[0]["PerSetInformation"].ToString();
            Address11.Value   = dt.Rows[0]["Address"].ToString();
            Remarks11.Value   = dt.Rows[0]["Remarks"].ToString();
            GenDecoct11.Value = dt.Rows[0]["GenDecoct"].ToString();
        }
    }
Ejemplo n.º 5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            ClearingpartyModel hm  = new ClearingpartyModel();
            SqlDataReader      sdr = hm.findClearingpartyAll();

            ClearPName.Items.Add(new ListItem("全部", "0"));
            if (sdr != null)
            {
                while (sdr.Read())
                {
                    this.ClearPName.Items.Add(new ListItem(sdr["ClearPName"].ToString(), sdr["ID"].ToString()));
                }
            }
        }
        this.FlexGridClearingparty.InitConfig(
            new string[] {
            "title=结算方信息",          //标题
            "striped=true",         //是否显示行交替色
            "selectedonclick=true", //是否点击行自动选中checkbox
            "usepager=false",       //使用分页器
            "showcheckbox=true",    //显示复选框
            "height=300",           //高度,可为auto或具体px值
            "width=500"             //宽度,可为auto或具体px值
        },
            new dotNetFlexGrid.FieldConfig[] {
            new dotNetFlexGrid.FieldConfig("id", "序号", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),

            new dotNetFlexGrid.FieldConfig("ClearPName", "结算方名称", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("GenDecoct", "代煎费", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),

            new dotNetFlexGrid.FieldConfig("ConPerson", "联系人", 80, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("ConPhone", "联系电话", 60, false, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("Address", "地址", 120, true, dotNetFlexGrid.FieldConfigAlign.Center),
            // new dotNetFlexGrid.FieldConfig("PerSetInformation","查看权限",130,false,dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("Remarks", "备注", 130, false, dotNetFlexGrid.FieldConfigAlign.Center),
        },
            null
            ,
            null
            );
        this.FlexGridClearingparty.DataHandler = new dotNetFlexGrid.DataHandlerDelegate(FlexGridClearingpartyDataHandler);  //提供数据的方法
    }
Ejemplo n.º 6
0
    public dotNetFlexGrid.DataHandlerResult FlexGridClearingpartyDataHandler(dotNetFlexGrid.DataHandlerParams p)
    {
        dotNetFlexGrid.DataHandlerResult result = new dotNetFlexGrid.DataHandlerResult();
        result.page  = p.page; //设定当前返回的页号
        result.total = 100;    //总计的数据条数,此处用100进行模拟,查询和筛选时需要根据实际
        ClearingpartyModel rm         = new ClearingpartyModel();
        string             ClearPName = "0";

        if (p.extParam.ContainsKey("ClearPName"))
        {
            ClearPName = p.extParam["ClearPName"];
        }


        //result.table = rm.findRecipeInfo(11, "111");
        // result.table = rm.findPackingInfo(Fpactate, Pacpersonnel, PacTime);

        result.table = rm.findClearingpartyInfo(Convert.ToInt32(ClearPName));

        /*  ClearingpartyHandler chandler = new ClearingpartyHandler();
         * result.table = chandler.SearchClearingparty();*/

        return(result);
    }